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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to