Stop Apache, if it
isn’t already. Copy php4ts.dll to the WindowsSystem directory. In httpd.conf search for #LoadModule it should bring you
to a list of modules that can be loaded. Leave those alone, but directly under
them, add these lines:
isn’t already. Copy php4ts.dll to the WindowsSystem directory. In httpd.conf search for #LoadModule it should bring you
to a list of modules that can be loaded. Leave those alone, but directly under
them, add these lines:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
Now, write a file called test.php, with this as the content:
<?php
echo "PHP Rules!";
?>
Save the file, and put it into the directory you set as the document root. You set that up above. Now start up Apache, and type this into the location bar of your favorite web browser:
http://localhost/test.php
If all goes well, you should get a lovely:
PHP Rules!
…on the screen. Well, did you? If so, great. If not, email me any problems you have, and I
will see if I can help you.
will see if I can help you.
What Next?
Well, that is up to you, I would recommend reading the PHP Manual, and accelerating your
PHP skills.
PHP skills.
This article originally appeared on HTMLGoodies.com.