Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > PHP

Reply
 
LinkBack Thread Tools Display Modes
Old 02-22-2006, 12:17 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
REQUEST_URI - v 4.4.1 windows vs linux

Came across an interesting thing today. $_SERVER['REQUEST_URI'] is supported on Linux/PHP v4.4.1, but not Windows/PHP v4.4.1.

It is supported on Windows/PHP v5.x though.
sde is offline   Reply With Quote
Old 02-22-2006, 06:40 PM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 704
DJMaze is on a distinguished road
http://dragonflycms.org/cvs/html/inc....php?v=9.24#85
DJMaze is offline   Reply With Quote
Old 02-22-2006, 06:42 PM   #3 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 704
DJMaze is on a distinguished road
oh and another i use
PHP Code:
# Workaround to create an REQUEST_URI for IIS 5 servers
$this->request_uri = (!empty($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : ($_SERVER['SCRIPT_NAME'].(!empty($_SERVER['QUERY_STRING']) ? '?'.$_SERVER['QUERY_STRING'] : ''))); 
DJMaze is offline   Reply With Quote
Old 02-22-2006, 07:49 PM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
that is a big function .. i found out when i deployed this project where i set the entry page in a cookie because the user gets directed to another domain if they are not logged in. tested on linux, deployed on win, same version =/

i could have sworn i posted this in PHP, .. i must be losing it.

good code examples, looks like you've been through this before i'm glad they fixed it in php5.
sde is offline   Reply With Quote
Old 02-24-2006, 02:33 AM   #5 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 704
DJMaze is on a distinguished road
Been there many times in PHP 4

function get_uri() is designed to prevent XSS exploits.
For example your website shows where people go and the uri has "><script>alert()</script>
then you know what might happen

The second is just plain and simple without security measurements.
DJMaze is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixing Windows with Knoppix sde Code Newbie News 1 02-03-2006 09:08 PM
networking windows and linux problem cheawick Linux / BSD / OS X 4 12-31-2004 05:40 PM
How to install Windows with Linux? john_tran Windows 2 11-08-2004 08:29 AM
Adobe dipping toes into desktop Linux waters sde Code Newbie News 0 11-03-2004 06:27 AM
Linux policies Belisarius Linux / BSD / OS X 0 08-09-2003 05:12 PM


All times are GMT -8. The time now is 05:18 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting