1. Home
  2. Technical
  3. PHP
  4. Displaying PHP information

Displaying PHP information

Information about PHP and its settings can be viewed by using the phpinfo() function in one of your scripts. As an example, you could create an empty .php file (with an arbitrary name*) in the htdocs/ directory with the following contents:

<?php

phpinfo();

?>

* For security reasons, it is not recommended to use phpinfo, info, etc. as filenames.

Updated on 4. Oct 2024
Was this article helpful?

Related Articles