|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-10-05 02:45 UTC] adamsbarker at hotmail dot com
Description:
------------
when using the following code:
zip_open('file_name.zip');
i get the following error:
----------------
Warning: zip_open() [function.zip-open]: Cannot open zip archive file_name.zip in C:\test.php on line 1
----------------
the "zip file" and "php script" are in the same directory
when i put in the full directory of the zip file, such as "C:\file_name.zip", the file is opened and everything works as expected.
i don't think this should be how it works as all other functions (ie, include()) don't need the full directory!
i am using the latest stable version 5.0.3-dev and PECL extensions
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
This is how i've done it: - my home directory is "D:\home" - both "open_zip.php" AND "abc.zip" are in "D:\home" - zip_open('D:\home\abc.zip'); - this works perfectly - zip_open('abc.zip'); - has this error: Warning: zip_open() [function.zip-open]: Cannot open zip archive abc.zip in D:\home\open_zip.php on line 3 - echo getcwd(); => produces this: D:\home i hope this makes sense :)