Re: Re: ZipArchive headache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On May 6, 2015, at 1:23 PM, Jeffry Killen wrote:


On May 6, 2015, at 1:04 PM, Christoph Becker wrote:

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().


The phpinfo on Zip:

zip
Zip enabled
Extension Version $Id: b1a1a3628c4ed0ad78fb0cc4a99b06a56aa281c4 $
Zip version 1.11.0
Libzip version 0.10.1

JK

The same story on Mac OSX Yosemite: w/ver 10.10.3
php version 5.5.20

zip
Zip 	enabled
Extension Version 	$Id: 05dd1ecc211075107543b0ef8cee488dd229fccf $
Zip version 	1.11.0
Libzip version 	0.10.1


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux