Viewing PHP Version Information

You can view the current PHP configuration and version info by doing the following:

 

Open a text editor such as vi or Notepad, and copy and paste the following:

  1. Open a text editor such as vi or Notepad, and copy and paste the following:
  2. //Shows all PHP Configuration settings
    phpinfo();
    
    //Shows PHP Module Information
    phpinfo(INFO_MODULES);
    ?>

  3. Save the file as phpinfo.php and upload the file to a browseable location inside your web directory.
  4. Open your web browser and go to the page you just created. You should see your current PHP configuration.
    Output should look like this:
yourdomain.tld/phpinfo.php


Was this article helpful? If not please submit a request here

How helpful was this article?