Getting PHP to work with MySQL
In my previous post, I described how to get PHP working with LightTPD on a Windows machine. But that’s not the end of the story, since what I really wanted was to get my local WordPress installation working, and the missing piece to the puzzle is to make sure that PHP is enabled for MySQL use.
To do that, simply edit the following in the php.ini file:
- Load MySQL extensions from the correct directory: extension_dir = “c:\php\ext”
- Remove the comment tag for: extension=php_mysql.dl”
A simple post that’s really supposed to be appended to the previous post, but I had some problems trying to get the get the code tag working, so I prefer not to touch that post again.
Anyway, my WordPress is in the htdocs directory right now, waiting for me to start some serious templating.
winston.yongwei