Sunday, April 24, 2005

PHP Error - Corrupt


"C:\php\php.exe is not valid Win32 application", that's the error message when i tried run pear.bat. first, i thought it's because there's something error with configuration. So strange, because i didn't change any PHP or IIS configuration recently, and PHP-IIS is still run well, i could still run any php script on IIS. And i tried to find the answer on Google, there's no alot solution there, but i found someone's comment in forum, he said the "php.exe" is corrupt.

well that's enough, at least i knew that the error is not on the configuration. so i have to change it with a new one, re-instal it? oh no, re-install is my last solution hehehehe. So tried to find the source file (php-5.0.2-Win32.zip), extracted the file, found "php.exe", then copied it to the place where PHP is installed (ex: C:/php/). Alhamdulillah, it's work :)

So if you got the same error error message ("C:\php\php.exe is not valid Win32 application") like i got, try to find "php.exe", look at the icon, if the icon is just like other DOS files, it mean your php.exe is corrupt (i didn't notice it at the first .. amateur .. hehehe). The good one will have the same icon like "php-cgi.exe" and "php-win.exe". Then you could do the samething like i did. Good Luck

Btw, i you know what could cause the php.exe corrupt, tell me please!

2 comments:

Anonymous said...

Thank you for your post. I couldn't figure out why php was working minute and not the next...!

Unknown said...

you probably installed aptana studio or eclipse and tried installing php debugger?