PHP Secure Mode is a safety characteristic that was launched in PHP 4.3.0 and deprecated in PHP 5.3.0. It disables sure PHP features and options that may very well be used to compromise the safety of an internet server. Checking if PHP Secure Mode is enabled could be helpful for troubleshooting safety points or guaranteeing that an internet server is configured securely.
There are a number of strategies to examine if PHP Secure Mode is enabled. One methodology is to make use of the phpinfo() perform. This perform shows details about the PHP configuration, together with whether or not or not Secure Mode is enabled. To make use of phpinfo(), merely create a PHP file with the next code: