View previous topic :: View next topic |
Author |
Message |
grampy -
Joined: 16 Jul 2002 Posts: 1 Location: Kentucky
|
Posted: Tue Jul 16, 2002 9:05 pm Post subject: Undefined Variable |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Jul 17, 2002 1:08 am Post subject: Re: Undefined Variable |
|
|
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 |
|
|
|