What is register_globals in php?
Answer Posted / imteyazhaider
When on, register_globals will inject your scripts with all
sorts of variables, like request variables from HTML forms.
This coupled with the fact that PHP doesn't require
variable initialization means writing insecure code is that
much easier. It was a difficult decision, but the PHP
community decided to disable this directive by default.
When on, people use variables yet really don't know for
sure where they come from and can only assume. Internal
variables that are defined in the script itself get mixed
up with request data sent by users and disabling
register_globals changes this.
Is This Answer Correct ? | 20 Yes | 6 No |
Post New Answer View All Answers
Do while loops?
What is the phpstorm?
Why is php used for web development?
What is php session id?
Which function parses an English textual date or time into Unix timestamp in PHP.
Will react hooks replace redux?
What is preg_match?
How to get complete current page url in php?
What is return value in php?
What is the major php security hole? How to avoid?
What are the different data types in javascript?
Where are sessions stored php?
What is env in laravel?
What is the meaning of ‘escaping to php’?
How is a session id generated?