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

How to randomly retrieve a value from an array?

794


Explain me soundex() and metaphone()?

753


What are the array functions in php?

740


How does php server work?

781


Explain the difference between static and dynamic websites?

771


How to access a specific character in a string?

726


How do I run a php script?

853


How is the comparison of objects done in php?

727


How to create a session? How to set a value in session? How to remove data from a session?

751


Is age interval or ordinal?

733


Why php 7 is faster?

750


Where can I learn php?

730


Can we set session value in javascript?

766


What is php7?

845


What is the function of mysql_real_escape_string in php?

724