I'm trying to executing winzip command line via the system() function.  I
know it can be done but I'm recieving a "Warning: Unable to fork" error
every time.  The server is running the latest PHP v4.21.

<?
// --------------------------------------------
// extract command structure..
// winzip[32].exe -e [options] filename[.zip] directory
// ---------------------------------------------
$exe = 'c:\Inetpub\WinZip\WINZIP32.EXE';
$opts = '-e';
$obj = 'e:\NLObjects\Arches_n_Tunnels.zip';
$dest = 'e:\NLObjects\arches';
$cmd = "$exe $opts $obj $dest";
system($cmd);
?>

Warning: Unable to fork [c:\Inetpub\WinZip\WINZIP32.EXE -e
e:\NLObjects\Arches_n_Tunnels.zip e:\NLObjects\arches] in
c:\inetpub\wwwroot\exchange_tmp\unzip_test.php on line 8


The path to the WinZip executable is confirmed via fopen().  Could there be
something wrong with the way I am constructing the command?  Or maybe
there's something wrong with this method all together?  Your help is greatly
appreciated.

--
Kevin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to