w3sl3y2003 Posted August 17, 2006 Share Posted August 17, 2006 Hi all,When ever i try to use $PHP_SELF it fails because its empty. register_globals is turned off. What could be the cause of this?All assistance is appreciated!! Link to comment https://forums.phpfreaks.com/topic/17830-blank-php_self/ Share on other sites More sharing options...
ToonMariner Posted August 17, 2006 Share Posted August 17, 2006 have you defined it? the actual global you are looking for is $_SERVER['PHP_SELF'] so unless you have done...$PHP_SELF = $_SERVER['PHP_SELF'];it will fail. Link to comment https://forums.phpfreaks.com/topic/17830-blank-php_self/#findComment-76128 Share on other sites More sharing options...
w3sl3y2003 Posted August 17, 2006 Author Share Posted August 17, 2006 Thanx ToonMariner!!! Link to comment https://forums.phpfreaks.com/topic/17830-blank-php_self/#findComment-76142 Share on other sites More sharing options...
Jenk Posted August 17, 2006 Share Posted August 17, 2006 take heed, PHP_SELF can be tainted. Use $_SERVER['SCRIPT_NAME'] instead. Link to comment https://forums.phpfreaks.com/topic/17830-blank-php_self/#findComment-76144 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.