I have:
Windows 2003 Server
PHP 4.3.10 Isapi

I'm trying to run an external program with exec() function like this:
exec('convert.exe "c:/my direcory/foo.jpg" "c:/my direcory/foo.bmp"');

In php + apache 2 is working withput problems, but in IIS6 is not working
and is not giving any Error Messages.
I changed the security permission for the user IUSR to execute
c:\windows\system32\cmd.exe to allow execution.

As anyone used the exec() command of PHP with succes in IIS?

Re: PHP Exec() not working in IIS6 by David

David
Mon Mar 14 15:05:19 CST 2005

This sounds like a PHP issue with security. It's certainly not the first and
won't be the last.

FYI: IIS6 and Windows are not liable to give any Error Messages for such
application failures like failing "exec()" (itself a PHP construct). It is
therefore the responsibility of PHP to report errors correctly -- so you are
really only point out a couple of PHP issues that you should contact PHP
support.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"jfisbein" <jfisbein@discussions.microsoft.com> wrote in message
news:7F495114-EDF7-4D2D-B7A0-3B627E7EF63B@microsoft.com...
I have:
Windows 2003 Server
PHP 4.3.10 Isapi

I'm trying to run an external program with exec() function like this:
exec('convert.exe "c:/my direcory/foo.jpg" "c:/my direcory/foo.bmp"');

In php + apache 2 is working withput problems, but in IIS6 is not working
and is not giving any Error Messages.
I changed the security permission for the user IUSR to execute
c:\windows\system32\cmd.exe to allow execution.

As anyone used the exec() command of PHP with succes in IIS?