RE: [PHP] PHP_SELF or REQUEST_URI within Function ?
| From: | Boget, Chris | Date: | Fri, 31 Aug 2001 15:04:49 +0000 |
| Subject: | RE: [PHP] PHP_SELF or REQUEST_URI within Function ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-65486@lists.php.net to get a copy of this message | ||
> So sprach »Arcadius A.« am 2001-08-31 um 05:27:04 -0700 :
> > $u = $SCRIPT_FILENAME;
> Because you did not define $SCRIPT_FILENAME anywhere. If you want to
> access the global variable, you've got to say so:
> global $SCRIPT_FILENAME;
Or, so you don't have to specify all the variables you are using
as globals (especially if you are using *alot* of them), you can
use:
$GLOBALS[SCRIPT_FILENAME];
Chris