Re: Re: ZipArchive headache
| From: | Christoph Becker | Date: | Wed, 06 May 2015 20:04:39 +0000 |
| Subject: | Re: Re: ZipArchive headache | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324875@lists.php.net to get a copy of this message | ||
Jeffry Killen wrote:
> here is the revised code using realpath(getcwd())
> At the bottom is the same result;
>
> else if($_GET['newArchAlt'])
> {
> //header('Content-Type: text/plain');
> //print $_GET['newArchAlt'];
> //exit;
> require_once("php/zpArchConst.php");
> //$_constER;
> $_alt = new ZipArchive();
> $_ret = $_alt->open(realpath(getcwd()).'/'.$_GET['newArchAlt'],
> ZipArchive::CREATE);
> header('Content-Type: text/plain');
> print $_ret.': '.$_constER[$_ret].":
> ".$_GET['newArchAlt'];
> exit;
>
> 1: ZipArchive::ER_MULTIDISK|Multi-disk zip archives not supported:
> test-2.zip
Which version of PHP and of libzip do you use? You can find the
information with phpinfo().
--
Christoph M. Becker