Posted by Matthew Weier O'Phinney on 08/04/05 19:32
* Sam Smith <php@itab.com>:
>
> shell_exec("zip -r ddd ddd"); // don't work
Many version of zip won't append the .zip extension. In such a case,
what you have above will try to name the zip file the same as the
existing directory, which obviously won't work. Try:
shell_exec("zip -r ddd.zip ddd");
--
Matthew Weier O'Phinney
Zend Certified Engineer
http://weierophinney.net/matthew/
Navigation:
[Reply to this message]
|