[PHP] echo $PHP_SELF doesn't work in an include
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] echo $PHP_SELF doesn't work in an include
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 [EMAIL PROTECTED] / /|_/ / // /\ \/ /_/ / /__ MySQL AB, The Web Guru /_/ /_/\_, /___/\___\_\___/ Tallinn, Estonia ___/ www.mysql.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] echo $PHP_SELF doesn't work in an include
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]