Re: Re: ZipArchive headache
| From: | Jeffry Killen | Date: | Wed, 06 May 2015 20:20:06 +0000 |
| Subject: | Re: Re: ZipArchive headache | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324877@lists.php.net to get a copy of this message | ||
On May 6, 2015, at 1:04 PM, Christoph Becker wrote:
Jeffry Killen wrote:On the current Mac OSX 10.6.8 PHP Version 5.3.26 The version I have on Mac OSX Yosemite 10.10.3 is php version 5.5.20, But I have not tested the latest code on this machine, nor the other machine with Yosemite. I am using the default document root as it appears in the httpd.conf file. JKhere is the revised code using realpath(getcwd()) At the bottom is the same result; else if($_GET['newArchAlt'])Which version of PHP and of libzip do you use? You can find the information with phpinfo().{ //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