RE: [PHP] echo $PHP_SELF doesn't work in an include
| From: | Andre Lacour | Date: | Thu, 06 Sep 2001 09:52:07 +0000 |
| Subject: | RE: [PHP] echo $PHP_SELF doesn't work in an include | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66187@lists.php.net to get a copy of this message | ||
> Hi,
>
> > I include another script-file with include_once. Now the output
> > of my PHP-Vars ($PHP_SELF, $REQUEST_URI,
> > $DOCUMENT_ROOT) is empty. In my parent-scripts the
> > output works fine, but in the include it neither outputs the
> > parent-data nor the include-data.
>
> try echo $GLOBALS["PHP_SELF"]. if that works, then you must
> have a scope problem.
no, it doesnt.