RE: [PHP-WIN] WinNT, PHP4, IIS4, exec() Nothing Happens at all!

From: Date: Sun, 15 Apr 2001 14:26:22 +0000
Subject: RE: [PHP-WIN] WinNT, PHP4, IIS4, exec() Nothing Happens at all!
Groups: php.windows 
Request: Send a blank email to php-windows+get-6747@lists.php.net to get a copy of this message
>-----Original Message----- >From: Dave Faulkner [mailto:dave@comlink.net.au] >Sent: Sunday, April 15, 2001 5:15 AM >To: php-windows@lists.php.net >Subject: [PHP-WIN] WinNT, PHP4, IIS4, exec() Nothing Happens at all! >Below is some of the stuff i have tried: > >// exec("I:\Perl\bin\cjpeg.exe -quality 30 -progressive $image_name"); >// exec("c:/autobatchit!/autobatchit.exe"); >// exec("c:\autobatchit!\autobatchit.exe"); >// exec("c:\command.com /k autobatchit.bat" ); > >And other variations which i have not added. The results are varying. If i >use "cmd" int he exec() anywhere, the script seems to halt at that point and >wont go any further. However all of the above lines result in NOTHING >happening at all!........if i look at the task manager while i run the >script, nithing comes up at all in relation to what i am >trying to execute. I duno if this helps, but when you write C/C++ programs and wants to include backslash, you have to "escape" it with an backslash. I guess the php engine is written in C or C++ and if they haven't compensated for the string parsing facilities in C/C++ then you will have to write it like this: // exec("I:\\Perl\\bin\\cjpeg.exe -quality 30 -progressive $image_name");

« previous php.windows (#6747) next »