Re: Using Exec on windows

From: Date: Sat, 29 Dec 2001 22:06:04 +0000
Subject: Re: Using Exec on windows
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-11208@lists.php.net to get a copy of this message
WinZip will need parameters to run from the command line for example to tell it what file to unzip. Did you include these in the command string? WinZip might be waiting for you to press a key or enter some information. It might not be able to find files because the dos window could open at any folder. Did you use absolute path names like c:\winzip\folder (not ..\winzip)? Try using the other executing commands, I think passthru() might work. LJ "David" <php@warpedweb.net> wrote in message news:Xns9186C588B368Dphpwarpedwebnet@216.92.131.4... > Hi, > I'm trying to execute a command line program using exec. > I am tring to run a command line interface of Winzip, simpily by executing > a string which works when it is typed into the command line. > > However, PHP just hangs there, I can see the program running the the > background, but it does not do anything. > > When it is run from the command line it takes about 2 seconds to run, but > using exec, it will never finish... > > Does anyone have any idea with this problem? > > Regards, > David

« previous php.windows (#11208) next »