I work for a company with a dedicated webserver which previously didn't have RAID. Now we are moving the site to a new server with RAID. The problem is the reason we are moving the site is because the old server died. The problem I am having is there are several scripts that automatically create images from a base image and the text that is passed to the script from the url. The scripts are named with a .jpg extension I have added this in the apache httpd.conf file for the virtual directories that contain these scripts. I had this working with IIS but I had some session tracking problems with IIS to where when I log into the site it logs me out once I go to another page. This works with apache but the images don't. The error I am getting in the logs is: Premature end of script headers: c:/php/php.exe. The script is passing the header("Content-type: image/jpeg"); function at the beginning of the script with no spaces around the <? tag just a line break. On the server itself PHP.exe keeps coming up and saying the application failed to initialize properly. The old server was using php version 4.2.3 and on the new one I have tried every release from 4.2.3 to 4.3.8 to no avail. I am using apache 1.3.31 which is the version the old server was using. I have also tried the newest version prior to 2 with no luck. I am very quickly running out of options here. If anybody has had a similar experience or know something that might fix it I would really appreciate it.