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
What are the features of php 7?
What are the different types of statements that are present in php?
Does apache use php?
What is the main difference between asp net and php?
What exactly is PHP?
Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?
How is traits used in php?
What is $_ post in php?
How do you remove duplicates from an array?
How to check an element is exists in array or not in php?
How long is a php session valid?
What is local variable in php?
What are the different errors in php?
How to count all the lines of code in a directory and sub folder?
Can you use php and javascript together?