Datasheet

P1: KTX
WY027-01 WY027-Mercer WY027-v2.cls June 5, 2004 0:44
Chapter 1
This gives you access to the functionality of the GD library, which enables you to generate images using
PHP programs (youll see how in Chapter 16, Generating Graphics). Save your modied php.ini le.
Again, select Start
Programs Administrative Tools Internet Services Manager, and open the
hierarchy of services. Right-click Default Web Site, and bring up its Properties (see Figure 1-16).
Figure 1-16
There are two changes to make. First, you need to register the PHP5 ISAPI lter, because you want to
install PHP with its own SAPI rather than as a CGI binary. Click the ISAPI Filters tab. Click the Add
button, and create a new lter called PHP. The folder of PHP les you downloaded contains
php5isapi.dll, a PHP ISAPI lter, in the sapi directory. Put in the correct path for your
php5isapi.dll le, as shown in Figure 1-17.
And second, you need to tell IIS which les to apply the PHP5 lter to. You want it to treat all les that
end with .php as PHP programs. On the Home Directory tab, click the Conguration button. Click the
Add button in the next dialog box, and the Add/Edit Application Extension Mapping dialog box opens
(see Figure 1-18).
Click the Browse button and specify the path to php5isapi.dll. Tell IIS to apply it to.php les by
entering .php in the Extension text box. Click OK, and then click OK again. Now you need to restart IIS.
Close the Properties box, right-click the Default Web site, and choose Start from the shortcut menu.
24