note 29642 added to function.zip-open
| From: | zontar at rack1 dot php dot net | Date: | Wed, 19 Feb 2003 23:23:27 +0000 |
| Subject: | note 29642 added to function.zip-open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44227@lists.php.net to get a copy of this message | ||
Minor correction to my previous note:
Of course, you can use realpath() to make things simpler.
zip_open( "../data/myfile.zip" );
// this doesn't work
zip_open( "W:\\siteroot\\data\\myfile.zip" );
// this works (Windows systems)
zip_open( "/home/zontar/www/data/myfile.zip" );
// this works (*nix systems)
zip_open( realpath( "../data/myfile.zip" ) );
// this also works, and is portable between systems
--
http://www.php.net/manual/en/function.zip-open.php
http://master.php.net/manage/user-notes.php?action=edit+29642
http://master.php.net/manage/user-notes.php?action=delete+29642
http://master.php.net/manage/user-notes.php?action=reject+29642