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!! Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
w3sl3y2003 Posted August 17, 2006 Author Share Posted August 17, 2006 Thanx ToonMariner!!! Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.