ldsmike88 Posted February 27, 2007 Share Posted February 27, 2007 I upgraded to PHP 5.2.0 a few days ago and I just realized some of my scripts aren't working because they rely on passing variables through the address bar (example: mysite.com/vars.php?myVar=varText). Well now the variables don't register when I run the script! It's like I didn't put them in the address bar. How can I fix this fast?! Thanks! Michael Link to comment https://forums.phpfreaks.com/topic/40402-solved-urgent-variables-in-address-php-520/ Share on other sites More sharing options...
ldsmike88 Posted February 27, 2007 Author Share Posted February 27, 2007 Is there a different way that variables have to be written in the address bar? Do you have to change some php file? Link to comment https://forums.phpfreaks.com/topic/40402-solved-urgent-variables-in-address-php-520/#findComment-195497 Share on other sites More sharing options...
fert Posted February 27, 2007 Share Posted February 27, 2007 is register_globals off? Link to comment https://forums.phpfreaks.com/topic/40402-solved-urgent-variables-in-address-php-520/#findComment-195504 Share on other sites More sharing options...
ldsmike88 Posted February 27, 2007 Author Share Posted February 27, 2007 Well I just downgraded back to 4.4.4 and it still doesn't work! How do I tell if register_globals is off? Link to comment https://forums.phpfreaks.com/topic/40402-solved-urgent-variables-in-address-php-520/#findComment-195506 Share on other sites More sharing options...
fert Posted February 27, 2007 Share Posted February 27, 2007 How do I tell if register_globals is off? look in your php.ini file Link to comment https://forums.phpfreaks.com/topic/40402-solved-urgent-variables-in-address-php-520/#findComment-195509 Share on other sites More sharing options...
TRI0N Posted February 27, 2007 Share Posted February 27, 2007 How is it getting the Pass Thru? $_GET['value'] If so try $_REQUEST['value'] Link to comment https://forums.phpfreaks.com/topic/40402-solved-urgent-variables-in-address-php-520/#findComment-195511 Share on other sites More sharing options...
ldsmike88 Posted February 27, 2007 Author Share Posted February 27, 2007 When I installed php it asked me if I wanted to use pass thru and I didn't check it. Should I? Link to comment https://forums.phpfreaks.com/topic/40402-solved-urgent-variables-in-address-php-520/#findComment-195513 Share on other sites More sharing options...
ldsmike88 Posted February 27, 2007 Author Share Posted February 27, 2007 I have no clue what these do so I just left them as they were: Please check the boxes next to the features you wish have enabled. You may change your selection at any time from the edit menu after installation. Enable 'exec' function (checked) Enable 'popen' function (checked) Enable 'passthru' function (unchecked) Enable 'proc_open' function (unchecked) Enable 'shell_exec' function (unchecked) Enable 'system' function (unchecked) Enable 'allow_url_include' feature (unchecked) Sorry for asking such a stupid question, but what should I check or uncheck? Link to comment https://forums.phpfreaks.com/topic/40402-solved-urgent-variables-in-address-php-520/#findComment-195519 Share on other sites More sharing options...
ldsmike88 Posted February 27, 2007 Author Share Posted February 27, 2007 Ok, so all I did was enable register_globals in my php.ini file and it worked out fine. Thanks for all the help! Michael Link to comment https://forums.phpfreaks.com/topic/40402-solved-urgent-variables-in-address-php-520/#findComment-195539 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.