note 30585 added to ref.zip

From: Date: Sun, 23 Mar 2003 04:32:52 +0000
Subject: note 30585 added to ref.zip
Groups: php.notes 
Request: Send a blank email to php-notes+get-45663@lists.php.net to get a copy of this message
Watch out with archives that contain subfolders if you're using the zip functions to extract archives to actual files. Let's say you're trying to extract foldername/filename.txt from the archive. You can't fopen a directory that doesn't exist, so you'll have to check for the existance of directory foldername and create it if it isn't found, then fopen foldername/filename.txt and begin writing to that. -- http://www.php.net/manual/en/ref.zip.php http://master.php.net/manage/user-notes.php?action=edit+30585 http://master.php.net/manage/user-notes.php?action=delete+30585 http://master.php.net/manage/user-notes.php?action=reject+30585

« previous php.notes (#45663) next »