14) Testing your PHP configuration

<-- Previous    Next –>

To test if PHP is working correctly, we can create a file called phpinfo.php and install at the root of the web site:

<?php

echo(phpinfo());

?>

From the root of the site display it in the browser http://yourservername/phpinfo.php

If everything is working correctly, this file will display useful information about your site, PHP version, Apache settings and so on.

<-- Previous    Next –>