Help PHP shell_exec fails to start a photoshop droplet
Posted: Wed Feb 06, 2008 6:40 am
I have been trying to have php script invoke an .exe file generated by photoshop .
For the purposes of testing I have simplified the real life scenario to as simple a level as I can , with no parameters needing to be passed
I have created a test droplet test.exe that I have tested and works fine
for testing I have also created a test.bat file I know correctly invokes the droplet test.exe and a directory listing
All files in same directory as the php script, and has a DIR command in it
I am calling a command string as follows:-
$testshell = shell_exec($shellcmd);
Results are as follows:
$shellcmd = "Dir" -- as expected I get a listing returned
$shellcmd = "test.exe" --- no response
$shellcmd = test.bat --- all lines of the .bat files are echooed and the DIR command returns list infomation.
I can see no error in the php error log , although the bat files was clearly executed it just looks like the photoshop exe is just not run or generates an no visible to php.
any help gratefull recieved.
Thanks
Dan
For the purposes of testing I have simplified the real life scenario to as simple a level as I can , with no parameters needing to be passed
I have created a test droplet test.exe that I have tested and works fine
for testing I have also created a test.bat file I know correctly invokes the droplet test.exe and a directory listing
All files in same directory as the php script, and has a DIR command in it
I am calling a command string as follows:-
$testshell = shell_exec($shellcmd);
Results are as follows:
$shellcmd = "Dir" -- as expected I get a listing returned
$shellcmd = "test.exe" --- no response
$shellcmd = test.bat --- all lines of the .bat files are echooed and the DIR command returns list infomation.
I can see no error in the php error log , although the bat files was clearly executed it just looks like the photoshop exe is just not run or generates an no visible to php.
any help gratefull recieved.
Thanks
Dan