Previously I had php installed (without the gd) that worked perfectly. Now, I want GD functionality and just removed my old php directory and then installed the php4win build at the same location so there should't be any changes to be made to the webserver I'm running (xitami).
Then I downloaded libpng.dll and png_zlib.dll and put them in c:\php\extensions and de-commented them from the c:\windows\php.ini:
extension=libpng.dll
extension=php_zlib.dll
extension=php_gd.dll
I also set the extension_dir in php.ini = c:/php/extensions
I also put the above extensions in the c:/windows/system directory
/rajdi