DekGenius.com
[ Team LiB ] Previous Section Next Section

Recipe 8.16 Verifying PHP Installation

Problem

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

Solution

Put the following in your test PHP file:

<?php phpinfo(  ); ?>

Discussion

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
figs/apcb_0802.gif

See Also

    [ Team LiB ] Previous Section Next Section