Jump to content

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.