View previous topic :: View next topic |
Author |
Message |
BV -
Joined: 03 Apr 2003 Posts: 2 Location: Eastbourne, East-Sussex, England
|
Posted: Thu Apr 03, 2003 10:52 pm Post subject: Reserved variables not working |
|
|
whenever i try to use one of the reserved variables, like or it says undefined variable...
how do i fix this? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Apr 04, 2003 2:13 pm Post subject: Re: Reserved variables not working |
|
|
BV wrote: | whenever i try to use one of the reserved variables, like or it says undefined variable...
how do i fix this? |
You should use $_SERVER['PHP_SELF'] instead. Read the PHP manual for the new PHP variables naming conventions. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
BV -
Joined: 03 Apr 2003 Posts: 2 Location: Eastbourne, East-Sussex, England
|
Posted: Fri Apr 04, 2003 11:44 pm Post subject: |
|
|
ok, thanx
and, if i wanted to make it so i could use variables such as $PHP_SELF, then could i go into the cgi parameters page, and set PHP_SELF as a variable, and put $_SERVER['PHP_SELF'] as the value, then i could just use $PHP_SELF? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Apr 05, 2003 12:56 am Post subject: |
|
|
BV wrote: | ok, thanx
and, if i wanted to make it so i could use variables such as $PHP_SELF, then could i go into the cgi parameters page, and set PHP_SELF as a variable, and put $_SERVER['PHP_SELF'] as the value, then i could just use $PHP_SELF? |
No, that has no meaning when you do so. If you want to use PHP_SELF as in the old days of PHP, you should edit php.ini, locate the line:
register_gloabls=off
and change it to:
register_gloabls=on
That way, you can use $PHP_SELF instead of $_SERVER['PHP_SELF'] . _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|