nobodyk Posted July 18, 2010 Share Posted July 18, 2010 Well I'm trying to disable register globals in my script (purchased). If I disable register globals, the script doesn't work. So my question is what do I need to look for in order for the script to work without RG. I've read that w/ register globals the script doesn't need to declare variables or something like that. My goal is to change the script so it can run w/ register globals off. Link to comment https://forums.phpfreaks.com/topic/208109-reprogram-script-to-disable-register-globals/ Share on other sites More sharing options...
Mchl Posted July 18, 2010 Share Posted July 18, 2010 Turn on E_NOTICE error reporting level, and see which variables appear as undefined. Then change them to $_POST[] or $_GET[] array members as appropriate. Note that not all variables that will appear as undeclared will need that. Link to comment https://forums.phpfreaks.com/topic/208109-reprogram-script-to-disable-register-globals/#findComment-1087845 Share on other sites More sharing options...
nobodyk Posted July 18, 2010 Author Share Posted July 18, 2010 Turn on E_NOTICE error reporting level, and see which variables appear as undefined. Then change them to $_POST[] or $_GET[] array members as appropriate. Note that not all variables that will appear as undeclared will need that. How can I turn that on? Link to comment https://forums.phpfreaks.com/topic/208109-reprogram-script-to-disable-register-globals/#findComment-1087850 Share on other sites More sharing options...
Mchl Posted July 18, 2010 Share Posted July 18, 2010 http://www.phpfreaks.com/tutorial/debugging-a-beginners-guide/page1 Link to comment https://forums.phpfreaks.com/topic/208109-reprogram-script-to-disable-register-globals/#findComment-1087852 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.