You can view the value of your hosting’s php version and parameters through the phpinfo.php file. This does not exist by default so this article provides the steps on how to create it.
- Create a website file with a file name of phpinfo.php.
- In the phpinfo.php file, enter the code below:
<?php phpinfo(); ?>
- Click Save Changes.
- Access the file on a browser by going to the website address yourdomain.com/phpinfo.php. Replace yourdomain.com with the domain or subdomain of your website.
The website page shows all the php information and parameters. This is useful when checking the changes made to php parameters.