REQUEST_URI not available in Windows?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

REQUEST_URI not available in Windows?

Post by alex.barylski »

I have a client reporting the following errors:

Code: Select all

Notice: Undefined index: REQUEST_URI in
I am also getting an error like this for DOCUMENT_ROOT

Here are his specs:
I am running this on a windows 2003 server enterprise edition with MySQL
ver. 5.0 and php ver. 4.4.4
Anyone have any ideas why those variables wouldn't be specified? Are there settings in php.ini which need investigating?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Elements in the $_SERVER array, as you might guess, are server dependent. Most probably your client runs IIS.
Check this page for a compatibility chart.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Hmmm....thanks for that man. :)

Much appreciated :)
Post Reply