Tag: php

Having written part of Vista (the weather gadget), you would think that I knew everything there was to know about the operating system. Of course the answer to that is “no way!”

Yesterday I had a bit of fun (interspersed with periodic cursing and much gnashing of teeth) trying to get my Vista box to serve up PHP pages. I thought I would share the experience and what I learned in the process.

Enable Internet Information Server IIS7

Enable ISAPI Extensions

Download PHP
Go to www.php.net/downloads.php to get the latest binary release. Choose the .ZIP version as we won’t be running an installer.

Extract the PHP .zip file to c:\php

Copy php.ini-dist to c:\windows\php.ini
Start / Run / cmd (you can also use the little Windows Key + R, then cmd)

From the command line, do the following:

cd \php
copy php.ini-dist c:\windows\php.ini

If you want to enable MySQL, Edit c:\windows\php.ini
(Otherwise skip to this step)

Since you’re still in a command window, just type:

notepad c:\windows\php.ini

In notepad, Ctrl+F to find the following line:
;extension=php_mysql.dll

remove the semi-colon (to uncomment it)

Now, Ctrl+F to find the following line:
extension_dir = “./”

change it to
extension_dir = “c:\php\ext”

and save the file.

Copy php_mysql.dll to c:\windows\system32
Since you still have an open command window, go there and type:

Our Mission

Render Corporation, founded in 1997, specializes in providing top Web Development talent to some of the most dynamic brands in the world.
We are experts in HTML/HTML5, CSS/CSS3 and Javascript, boasting a client list that includes nearly all of the top names in Silicon Valley.
Chances are, if you are a Javascript developer, you are already using code we developed.
We are actively seeking new clients, so if you require the best, contact us.