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
How to get the ip address of the client?
What is strlen function in php?
Why would we use === instead of ==?
How to execute a php script from the command line?
What are regular expressions in programming?
What is the current stable version of php?
Can we run php in apache tomcat?
Is php better than python?
How can we set and destroy the cookie in php?
What is difference between get and post in php?
What difference between require() and require_once()?
What are the differences between require and include?
Write a program in php to print a table of a number?
How the values are ordered in an array?
Tell me will a comparison of an integer 12 and a string "13" work in php?