phpinfo is a function that returns information about the PHP environment on your server. This can be useful to check your PHP settings, extensions and versions.

To use this function, simply create a file with the .php file extension (e.g. phpinfo.php) in your account's public_html folder and add the following code:

<?
phpinfo ();
?>

Next, open the URL using your web browser (e.g. https://www.yourdomain.tld/phpinfo.php [replace yourdomain.tld with your actual domain]).

Important: For security reasons, we recommend deleting this file when it is no longer required, or renaming the file to a name which is not guessable.

Updated by SP on 14/12/2022

Was this answer helpful? 331 Users Found This Useful (1078 Votes)