Testing Your Installation

PHP should now be installed and working on your machine. Go ahead and test it out. Open up your favorite text editor and type the following:

<?php
phpinfo();
?>

Then save this file as test.php and move it to a place where you will be able to hit it. If you are on Windows you can put it in C:Inetpubwwwroot est.php; if you are in UNIX you can put it in /usr/web/test/php.

Open up a Web browser and type in http://localhost/test.php and you should see something similar to Figure 2.2.

Figure 2.2. Test results of your new PHP installation.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset