RE: [PHP] exec

From: Date: Thu, 11 Oct 2001 13:56:37 +0000
Subject: RE: [PHP] exec
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70803@lists.php.net to get a copy of this message
I got it to work, sort of. Changed exec('c:\mydir\unzip myfile.zip -d c:\mydir\mydata\'); to exec('c:\mydir\unzip c:\mydir\myfile.zip -d c:\mydir\mydata\'); but it hangs. Extract the file but it hangs and I have to restart apache. I have tried exec($mycom, $myresult); print_r($myresult); this says "Unable to Fork [...]"! I had read through the archive and it says something about the number of precesses that can run at one time. Why does the first case show no errors? I found no solution, everyone seams to have a theory though. I need to use the second case since am am looping through and array and using the array value as the file name. I have tried exec("c:\....." .$data. ""); but it didn't like it. Any ideas here Ajdin On Wed, 10 Oct 2001, ArsenKirillov wrote: > 1. Put pkzip into path (c:\winnt c:\windows) > 2. exec('pkzip -add arh.zip'); > > _----- > > > Hi > > I am trying to use exec command (php4 + Win98 + apache). > > exec('c:\mydir\unzip myfile.zip -d c:\mydir\mydata\'); > > I executes without errors but nothing is unzipped. When I run the same > command from the dos prompt it unzips OK. c:\mydir and mydata are > outside the httpdocs directory! > > I have over 300 .zip files which all contain a .mdb file with same table > structure and same name. I wrote script that will read all of them (one > by one) but wish to automate the unzipping process. > > Any ideas. > > Ajdin > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#70803) next »