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?
Can I write php code in html file?
Does php pass arrays by reference?
What is php oop?
What types of loops exist in php?
What is the meaning of a final class and a final method?
Is c similar to php?
Explain what is the use of "echo" in php?
Is php 5.6 secure?
How to randomly retrieve a value from an array?
Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?
List some array functions in php?
What is the use of inner join in mysql?
What are helpers in php?
Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?