A phpinfo page lets you check your current PHP information for your web hosting account. Using a phpinfo page lets you quickly check available PHP extensions and PHP settings.
The phpinfo page will show:
- The current version of PHP
- Available PHP extensions and compilation options
- PHP variables such as memory_limit, upload_max_filesize, post_max_size and max_execution_time
- PHP environment
- OS version and information, paths, master and local PHP variables
How-to create a phpinfo.php page
- Open a text file. On Windows, open Notepad. On Mac, open TextEdit, click New Document, then click Format > Make Plain Text.
- Copy and paste the following code
<?php phpinfo(); ?>
- Save the file as phpinfo.php
- Upload phpinfo.php to your public_html folder in your Ecenica web hosting using either FTP or cPanel File Manager.
- Visit the page in your web browser. The web address will be similar to http://www.your-domain.com/phpinfo.php
Tips for reading phpinfo.php
Use your web browser search to find the extensions or variables you want to see. On Windows, press the Ctrl+F keys. On Mac, press cmd+F.