PHP

What PHP extensions are installed?

Tags: • 

This list is not comprehensive; ask us if to double check if a module is not listed here. If we do not have it installed we will also consider installing it.

Is register_globals on or off?

Tags: • 

register_globals is off.

The upstream PHP maintainers have been recommending this since PHP 4.2 because of the security implications, and we take the stance that no one knows their software better than they do. Please see this article regarding register_globals, part of the PHP manual.

If you have a script that requires use of register_globals, the best thing to do is to rewrite it to not use register_globals, or to contact the script's author and ask them to do it. PHP provides the super-arrays $_REQUEST, $_GET, $_POST, and many others as replacement; you can selectively assign variables used throughout your script at the beginning:

$form_variable = $_POST['form_variable'];

As last resort, you can reenable register_globals for a specific directory by placing the following inside an .htaccess file in that directory:

php_flag register_globals 1

Please be aware you are responsible for all security breaches by doing this, and may be liable as detailed in our terms of service.

Syndicate content