Nemus Posted February 7, 2011 Share Posted February 7, 2011 We are trying to update a web server from PHP Version 5.1.6 to PHP Version 5.3.2-1ubuntu4.7 I have a site that was code with out $_POST['VARIABLE_NAME'] where it refers to just the $VARIABLE_NAME when doing post along with $DOCUMENT_ROOT instead of the $SERVER['DOCUMENT_ROOT'] Is there away to enable these options in the php.ini file? thanks Link to comment https://forums.phpfreaks.com/topic/227001-how-to-auto-generate-post-variables/ Share on other sites More sharing options...
requinix Posted February 8, 2011 Share Posted February 8, 2011 Yes, there is. But don't do it. There are a number of risks with doing so and if you aren't aware of them then it's only a matter of time before someone compromises your site. Really, what's wrong with typing $_POST["foo"] instead of $foo? Link to comment https://forums.phpfreaks.com/topic/227001-how-to-auto-generate-post-variables/#findComment-1171285 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.