Re: echo $PHP_SELF doesn't work in an include

From: Date: Thu, 06 Sep 2001 09:36:50 +0000
Subject: Re: echo $PHP_SELF doesn't work in an include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66183@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 is neither outputs the > parent-data nor the include-data. try echo $GLOBALS["PHP_SELF"]. if that works, then you must have a scope problem. Rgds, Indrek -- For technical support contracts, goto https://order.mysql.com/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Indrek Siitan <tfr@mysql.com> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, The Web Guru /_/ /_/\_, /___/\___\_\___/ Tallinn, Estonia <___/ www.mysql.com

« previous php.general (#66183) next »