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 get the ip address of the client?

8698


Can I write php code in html file?

538


Does php pass arrays by reference?

573


What is php oop?

517


What types of loops exist in php?

544






What is the meaning of a final class and a final method?

536


Is c similar to php?

492


Explain what is the use of "echo" in php?

557


Is php 5.6 secure?

539


How to randomly retrieve a value from an array?

554


Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?

563


List some array functions in php?

506


What is the use of inner join in mysql?

537


What are helpers in php?

474


Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?

550