PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am afraid that I dont agree with you on the bad manuals part.
Turning register_globals to ON will help you to code faster, but this poses a security risk. I could pass variables via my browser and try to get into a system.
I suggest the use of $_POST and $_GET or $HTTP_POST_VARS and $HTTP_GET_VARS.
I am afraid that I dont agree with you on the bad manuals part.
Actually you disagree with me.
register_globals is off by default since PHP 4.2.0 (released 22-Apr-2002, more than 2 years ago). Manual writers should have adopted this change and change their manuals accordingly by this time. Those who haven't write bad manuals. Aren't you convinced?
of course it could just be an old manual or old web reference that was published more then 2 years ago? But yes having register_globals = on is not a good thing for all sorts of security reasons. I remeber the headache of changing piles of code to get it to work on php 4.2 and greater.
Work to standards now as it will make your life easier in the end.