JavaScript Editor Javascript source editor     Web programming 



Team LiB
Previous Section Next Section

Testing Your Installation

The simplest way to test your PHP installation is to create a small test script utilizing the phpinfo() function. This function will produce a long list of configuration information. Open a text editor and type the following line:

<?php phpinfo(); ?>

Save this file as phpinfo.php and place it in the document root of your Web serverthe htdocs subdirectory of your Apache installation, or the /Library/WebServer/Documents directory on Mac OS X. Access this file via your Web browser and you should see something like Figure 4.4, Figure 4.5, or Figure 4.6.

Figure 4.4. The results of phpinfo() on a Linux/Unix system.


Figure 4.5. The results of phpinfo() on a Mac OS X system.


Figure 4.6. The results of phpinfo() on a Windows system.


    Team LiB
    Previous Section Next Section


    JavaScript Editor Javascript source editor     Web programming