Can you set "register_globals" to ON in PHP for me?

Such a global change to the .user.ini config is a well-known security risk and affects all other customers and isn't something we recommend doing unless you are aware of the risks and there is no better way to achieve what you intend to.

However, you can set that and any other variable using the method below. You can create your own .user.ini file inside whatever subdirectory your script is in. You can then determine the exact behaviour for your PHP scripts yourself.

There's a lot of documentation on how to use the various configuration features inside .user.ini available here In this case, to set register globals on, you can just create a file called .user.ini in the subdirectory of your website that the script is in, simply adding:

register_globals = on

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Is PHP a CGI or Apache module?

PHP runs as a CGI at GreenBackEnd Hosting. This is because it is more secure than running it as...

Can I place a PHP script in any directory I choose?

Yes. PHP scripts do not have to reside in any particular directory and will run anywhere in your...

What are the correct file permissions for a PHP file?

As a general rule, the permissions of a PHP file should take one of two sets of values, either...

Can I override php.ini/.user.ini settings?

Note: On our new platform, custom PHP settings need to be declared in a file called .user.ini,...

Does GreenBackEnd Hosting support Image::Magick?

Yes we do, and in case you need to know the exact version number, at the time of writing, the...