It is always secured to turn OFF register_globals in PHP applications. Earlier, we have seen how to turn OFF register_globals setting via .htaccess file and in this blog we will use php.ini instead.
Using a text editor create a file called php.ini. This will be our first step.
Next, we need to add the following line of code in php.ini
register_globals = off
Upload php.ini file to the root folder where your application resides.