Diagnostics for PHP coders

This script, "diagnostics.php", will help you find out the characteristics
of the PHP version on your server.

You can download it at: www.topcode.co.uk

Host IP

This server is located at:

PHP Version

PHP has come in various versions over the years and different hosts have
different versions installed. PHP commands can vary over time. The way
PHP is configured can vary, and sometimes the host can change the
configuration file.

On this server, the PHP version is: 7.0.33

So, what works and what doesn't?

Safe mode

On this server, safe_mode is is OFF.

More about safe_mode

Maximum execution time for scripts

On this server, the maximum script execution time for scripts is 30 seconds.

safe_mode is OFF, so you can change max_execution_time with either:

ini_set("max_execution_time", $seconds);




On this server, allow_url_fopen is ON.


If open_basedir is ON, the files that can be opened by PHP are limited
to the specified directory-tree, including the file itself.

On this server, open_basedir is OFF.


On this server, allow_url_fopen is ON so


to an external domain will succeed, subject to the open_basedir setting.


On this server, allow_url_fopen is ON so


to an external domain will succeed, subject to the open_basedir setting..


Curl is a safe way to fetch content from other sites. It works
irrespective of the value of allow_url_open. However, PHP must be
configured so that curl routines are enabled.

On this server, curl is enabled.


Just in case the url for your curl resource changes, curl has the
FOLLOWLOCATION option to automatically follow and retrieve the
requested data from its new location.

On this server, safe_mode is is OFF, so FOLLOWLOCATION should succeed. Use:

if (ini_get("safe_mode")) {
    < write code to parse the response >
  } else {
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);


This script has been prepared in good faith but no guarantee of
accuracy or suitablity for purpose is offered.

Last update: 25/07/13