Jump to content

$_SERVER['REQUEST_METHOD'] to $REQUEST_METHOD


alin19

Recommended Posts

hello guys,  i'm fixing a friends website and he has a realy ugly code, short tags, erorr_reporting etc...

 

i cant' remember the atribut that i have to change in php.ini to be able to use as a variable , a member from global arrays

 

can you help me?

Link to comment
Share on other sites

i'm fixing a friends website

 

Then fix the code, don't turn the setting on that would cause $REQUEST_METHOD to work. The specific setting, because it opened a huge security hole (allows hackers to set session variables) was turned off by default over 7 years ago and has been completely removed in php6. If you are fixing the code, then fix it so that is uses the correct array variables.

Link to comment
Share on other sites

if i would have to fixed id from head to tail i will delete everyting and code it from scratch,

 

but i just need to fix something that he is not comfortable with ; i will make him aware of the problems,

uncoded psw for users, deprecated functions , and much more, it will be his choise if he will invest money in it or leave it like this.

 

thanks for your answer

 

L.E:  i have found it, thanks  for your post; i know it is good intended

Link to comment
Share on other sites

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.