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

Do while loops?

725


What is the phpstorm?

748


Why is php used for web development?

729


What is php session id?

713


Which function parses an English textual date or time into Unix timestamp in PHP.

780


Will react hooks replace redux?

714


What is preg_match?

737


How to get complete current page url in php?

811


What is return value in php?

705


What is the major php security hole? How to avoid?

753


What are the different data types in javascript?

884


Where are sessions stored php?

762


What is env in laravel?

727


What is the meaning of ‘escaping to php’?

830


How is a session id generated?

741