In my php.ini I have register_globals=Off
But still if I visit
`/testing/testing.php?abc=19`
then value of abc=19 is shown by using echo $_REQUEST['abc'].
Question is why still I can access value of abc variable?
Note: I am using XAMPP.
You are asking why you can give
register_globals=Offand$_REQUEST['abc']will be set. That's not relevant to howregister_globalsworks.register_globalssets a global variable with the name of the URL key. So in this case you could doecho $abc;and the code would work fine ifregister_globalswas enabled and would cause an error if it was disabled.$_REQUEST(like$_GETand$_POST) is a super-global, and will be available whatever setting you give.