PHP Protected Mode is a safety function that was launched in PHP 4.3.0 and deprecated in PHP 5.3.0. It disables sure PHP capabilities and options that could possibly be used to compromise the safety of an online server. Checking if PHP Protected Mode is enabled might be helpful for troubleshooting safety points or making certain that an online server is configured securely.
There are a number of strategies to verify if PHP Protected Mode is enabled. One methodology is to make use of the phpinfo() operate. This operate shows details about the PHP configuration, together with whether or not or not Protected Mode is enabled. To make use of phpinfo(), merely create a PHP file with the next code: