Re: Exec problem (using Winzip - command line)
| From: | trystano at aol dot com | Date: | Wed, 16 Nov 2005 19:36:09 +0000 |
| Subject: | Re: Exec problem (using Winzip - command line) | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-26496@lists.php.net to get a copy of this message | ||
Are you getting anything in your Apache Error/Event logs?
Tryst
-----Original Message-----
From: Chuck Anderson <hairtwoday@gmail.com>
To: php-windows@lists.php.net
Sent: Mon, 14 Nov 2005 16:31:57 -0700
Subject: [PHP-WIN] Exec problem (using Winzip - command line)
I wrote a script to backup my Thunderbird user profile every night by zipping the whole profile (with subfolders) into a zip file.
I use exec to call Winzip with command line parameters (see - http://www.memecode.com/docs/winzip.html)
The script worked fine until I tried it under my Apache 2.0 installation (I usually use 1.3). The exec command starts Winzip (I can see it in task manager), but it just sits and pins - doing nothing. The Php script times out.
I can not figure out what the problem could be. exec($cmd, $output, $retval) with $cmd = 'dir 'works, as does changing $cmd to another program in my Program Files folder. It appears that it is only Winzip (in Program Files/WinZip) that will not work.
Any ideas what it could be?
-- PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php