Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
$_SERVER['REQUEST_URI'] availabilioty in PHP 4.3.3
Old 06-23-2005, 07:49 AM $_SERVER['REQUEST_URI'] availabilioty in PHP 4.3.3
rungss's Avatar
Skilled Talker

Posts: 67
Name: Bijay Rungta
Location: Mumbai, India
Trades: 0
Does any body know if $_SERVER['REQUEST_URI'] is available in PHP 4.3.3 or not

according to the documentation that I've got from php.net
It should be available

But I am getting the following error when using it in my machine

Undefined index: REQUEST_URI

I have PHP version 4.3.3 installed on Windows 2003 Server

It is giving the same error for some of the other indices as well.


Can anybody help????????????
rungss is offline
Reply With Quote
View Public Profile Visit rungss's homepage!
 
 
Register now for full access!
Old 06-23-2005, 08:14 AM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
A quick google search turned up this:
http://www.interaktonline.com/Produc...ults+page.html

It seems there's a problem when PHP is installed as CGI, try the code snipped that was posted there.
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 06-23-2005, 09:15 AM
rungss's Avatar
Skilled Talker

Posts: 67
Name: Bijay Rungta
Location: Mumbai, India
Trades: 0
Quote:
Originally Posted by Anacrusis
A quick google search turned up this:
http://www.interaktonline.com/Produc...ults+page.html

It seems there's a problem when PHP is installed as CGI, try the code snipped that was posted there.
ya and this what I got there


We are aware of this bug which seems to appear when PHP is installed as CGI.

Please try this: edit the "includes\MXSearch\KT_MXSearchConfig.class.php " file and add this code right after the <?php at the beginnig of the file:

if (!isset($_SERVER['REQUEST_URI']) && isset($_ENV['REQUEST_URI'])) {
$_SERVER['REQUEST_URI'] = $_ENV['REQUEST_URI'];
}
if (!isset($_SERVER['REQUEST_URI'])) {
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'].(isset($_SERVER['QUERY_STRING'])?"?".$_SERVER['QUERY_STRING']:"");
}


nice
Thanks
rungss is offline
Reply With Quote
View Public Profile Visit rungss's homepage!
 
Reply     « Reply to $_SERVER['REQUEST_URI'] availabilioty in PHP 4.3.3
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11647 seconds with 12 queries