alin19 Posted January 23, 2010 Share Posted January 23, 2010 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 https://forums.phpfreaks.com/topic/189548-_serverrequest_method-to-request_method/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 23, 2010 Share Posted January 23, 2010 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 https://forums.phpfreaks.com/topic/189548-_serverrequest_method-to-request_method/#findComment-1000488 Share on other sites More sharing options...
alin19 Posted January 23, 2010 Author Share Posted January 23, 2010 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 https://forums.phpfreaks.com/topic/189548-_serverrequest_method-to-request_method/#findComment-1000492 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.