[PHP2.10] Can you set "register_globals" to ON in PHP for me?

Such a global change to the php.ini config is a well known security risk and affects all other customers and isn't something we'd consider doing. However you can set that and any other variable using the method below.

You can create your own php.ini file inside whatever sub-directory 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 php.ini online at http://uk2.php.net/configuration.

In this case, to set "register globals" on, you can just create a file called "php.ini" in the subdirectory of your website that the script is in, simply saying:

register_globals = on

Was this answer helpful?

 Print this Article

Also Read

[PHP2.05] 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...

[PHP2.08]Can I override php.ini settings?

Some variables in the php.ini file can be overwritten, you can do this creating a php.ini file in...

[PHP2.03] Is PHP a CGI or Apache module?

PHP runs as a cgi at Hosting cPanel – this is because it is more secure than running it as an...

[PHP2.04] How do I query a MySQL database from a PHP script?

Use the following outline to connect and begin querying the MySQL server from within your PHP...

[PHP2.12] Can PHP5/PHP4 code be put in files with the .html/htm file extension?

It is possible to run php code in .html files by adding the following to a .htaccess...