Jump to content

How to Auto Generate Post Variables


Recommended Posts

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

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.