Executing WinZip command line not working.

From: Date: Mon, 08 Jul 2002 04:35:55 +0000
Subject: Executing WinZip command line not working.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-106149@lists.php.net to get a copy of this message
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

« previous php.general (#106149) next »