Re: exec
| From: | Chris Lee | Date: | Wed, 10 Oct 2001 17:18:43 +0000 |
| Subject: | Re: exec | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70707@lists.php.net to get a copy of this message | ||
first things first, whats the output from the command ?
exec($command, $return);
print_r($return);
--
Chris Lee
lee@mediawaveonline.com
"Ajdin Brandic" <abrandic@coventry.ac.uk> wrote in message
news:Pine.OSF.3.91.1011010170328.9076A-100000@leofric...
> 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