note 116799 added to ziparchive.addfile

From: Date: Mon, 02 Mar 2015 11:43:11 +0000
Subject: note 116799 added to ziparchive.addfile
Groups: php.notes 
Request: Send a blank email to php-notes+get-201836@lists.php.net to get a copy of this message
2 tips: - The example in on this page is a bit misleading for new programmers. It works only if the ZIP archive file exists already. Don't forget to use ZipArchive::CREATE and optionally ZipArchive::OVERWRITE in the second optional parameter in the open() function. - If you want to add files and directories recursively (see some examples from other comments here on this page) use scandir() instead of blob() because blob() does not list hidden files like ".htaccess" for example. ---- Server IP: 72.52.91.14 Probable Submitter: 91.55.85.134 ---- Manual Page -- http://php.net/manual/en/ziparchive.addfile.php Edit -- https://master.php.net/note/edit/116799 Del: integrated -- https://master.php.net/note/delete/116799/integrated Del: useless -- https://master.php.net/note/delete/116799/useless Del: bad code -- https://master.php.net/note/delete/116799/bad+code Del: spam -- https://master.php.net/note/delete/116799/spam Del: non-english -- https://master.php.net/note/delete/116799/non-english Del: in docs -- https://master.php.net/note/delete/116799/in+docs Del: other reasons-- https://master.php.net/note/delete/116799 Reject -- https://master.php.net/note/reject/116799 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201836) next »