Recipe 8.16 Verifying PHP Installation


You want to verify that you have PHP correctly installed and configured.


Put the following in your test PHP file:

<?php phpinfo(  ); ?>


Place the above text in a file called something.php in a directory where you believe you have enabled PHP script execution. Accessing that file should give you a list of all configured PHP system variables. The first screen of the output should look something like Figure 8-2.

Figure 8-2. Sample phpinfo( ) output

See Also

  • Recipe 8.15

Apache Cookbook
Apache Cookbook: Solutions and Examples for Apache Administrators
ISBN: 0596529945
EAN: 2147483647
Year: 2006
Pages: 215

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: