Datasheet
P1: KTX
WY027-01 WY027-Mercer WY027-v2.cls June 5, 2004 0:44
Getting Up and Running
Figure 1-17
Provided the message in the MMC reports that the World Wide Web Publishing service was started
successfully, you now have PHP5 installed. Remember the name of your Web site’s root directory
(the book’sisD:\Inetpub\wwwroot).
Create a folder in the wwwroot folder. Name it anything you want (but something helpful, like
php_files), and place files in it with a .php extension. These files will be processed through the PHP
scripting engine when requested by a browser.
Now open your text editor and create a text file with the following code in it:
<?php
phpinfo();
?>
Save this file as test01.php (or something like that, so long as the filename extension is .php)inthe
folder you just created under the wwwroot folder. Open the file in your browser, using
http://localhost plus the name of your new folder and the filename (for example,
http://localhost/php_file/myfile.php). You should now see something like Figure 1-19 in your
browser (although your PHP version number might be a bit different if you have a more recent release):
Assuming it works, you’re now in business. If not, check out the following section.
25