note 96382 added to function.ziparchive-addfile

From: Date: Wed, 24 Feb 2010 09:44:47 +0000
Subject: note 96382 added to function.ziparchive-addfile
Groups: php.notes 
Request: Send a blank email to php-notes+get-166312@lists.php.net to get a copy of this message
It is not obvious, since there are no noticeable examples around, but you can use $localname (second parameter) to define and control file/directory structure inside the zip. Use it if you do not want files to be included with their absolute directory tree. <?php ... $zip->addFile($abs_path, $relative_path); ... ?> ---- Server IP: 69.147.83.197 Probable Submitter: 94.100.238.130 ---- Manual Page -- http://www.php.net/manual/en/function.ziparchive-addfile.php Edit -- https://master.php.net/note/edit/96382 Del: integrated -- https://master.php.net/note/delete/96382/integrated Del: useless -- https://master.php.net/note/delete/96382/useless Del: bad code -- https://master.php.net/note/delete/96382/bad+code Del: spam -- https://master.php.net/note/delete/96382/spam Del: non-english -- https://master.php.net/note/delete/96382/non-english Del: in docs -- https://master.php.net/note/delete/96382/in+docs Del: other reasons-- https://master.php.net/note/delete/96382 Reject -- https://master.php.net/note/reject/96382 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#166312) next »