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


Please Help Members By Posting Answers For Below Questions

What is the use of token in php?

508


Define metaphone()?

8304


What is the meaning of a persistent cookie?

563


What is form submission?

550


Tell me what does $_env means?

536






Will react hooks replace redux?

513


How a variable is declared in php?

518


What is uri routing?

525


Explain me what is the difference between explode() and split() functions?

542


Explain NULL?

582


Explain me is it possible to destroy a cookie?

561


Explain mysql_errno()?

556


What is session in PHP. How to remove data from a session?

517


Explain scalar type declarations in php7?

553


Is ruby on rails php?

508