Hi guys,
I'm using ImageMagick to do scaling / filtering to uploaded images by
calling the following:
exec("cmd.exe /c convert.exe -filters in.jpg out.jpg");
This works flawlessly on our developlemt servers, but on our webserver
it'll work for a day or two, then every time exec() is called ImageMagick
runs, does the conversion and terminates (it's removed from the Task
Managers display, out.jpg is saved fine), but CMD.EXE stays resident and
PHP locks up.
Sometimes just restarting IIS is enough to get it going again, but
sometimes the whole machine needs rebooting before exec() will work again
(after that it'll work fine again for a day or two).
calling exec() without calling cmd.exe results in exactly the same thing so
I think PHP runs commands through cmd.exe implicitly.
The version of PHP I'm using is 4.3.8 run using isapi.dll
Has anyone had any experience with this problem, or has any ideas on things
I could try next time it happens?
Regards,
Andrew Crowe
I'm using ImageMagick to do scaling / filtering to uploaded images by
calling the following:
exec("cmd.exe /c convert.exe -filters in.jpg out.jpg");
This works flawlessly on our developlemt servers, but on our webserver
it'll work for a day or two, then every time exec() is called ImageMagick
runs, does the conversion and terminates (it's removed from the Task
Managers display, out.jpg is saved fine), but CMD.EXE stays resident and
PHP locks up.
Sometimes just restarting IIS is enough to get it going again, but
sometimes the whole machine needs rebooting before exec() will work again
(after that it'll work fine again for a day or two).
calling exec() without calling cmd.exe results in exactly the same thing so
I think PHP runs commands through cmd.exe implicitly.
The version of PHP I'm using is 4.3.8 run using isapi.dll
Has anyone had any experience with this problem, or has any ideas on things
I could try next time it happens?
Regards,
Andrew Crowe
Comment