Undefined Variable

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
grampy
-


Joined: 16 Jul 2002
Posts: 1
Location: Kentucky

PostPosted: Tue Jul 16, 2002 9:05 pm    Post subject: Undefined Variable Reply with quote

I have just installed Abyss on WinXP to use at home for development.

PHP is installed and working in all instances so far except this call to a server variable "REQUEST_URI" to out which page we are on:

# on which page are we ?
$PHP_SELF = $HTTP_SERVER_VARS["REQUEST_URI"];

REQUEST_URI is a familiar server variable, but it apparently not availble in Abyss. Any suggestions or work arounds?

Thanks
_________________
Grampy
Back to top View user's profile Send private message Visit poster's website MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jul 17, 2002 1:08 am    Post subject: Re: Undefined Variable Reply with quote

grampy wrote:
I have just installed Abyss on WinXP to use at home for development.

PHP is installed and working in all instances so far except this call to a server variable "REQUEST_URI" to out which page we are on:

# on which page are we ?
$PHP_SELF = $HTTP_SERVER_VARS["REQUEST_URI"];

REQUEST_URI is a familiar server variable, but it apparently not availble in Abyss. Any suggestions or work arounds?

Thanks

REQUEST_URI can be replaced by
Code:
$HTTP_SERVER_VARS["SCRIPT_NAME"] ."?".$HTTP_SERVER_VARS["QUERY_STRING"]

Thank you for the suggestion, we will include it in the future.

(By the way, Abyss Web Server documentation lists all the CGI variables. So it is worth a look :wink: )
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group