#30326 [Fbk->NoF]: "zip_open" cannot open file

From: Date: Mon, 06 Dec 2004 00:00:12 +0000
Subject: #30326 [Fbk->NoF]: "zip_open" cannot open file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69819@lists.php.net to get a copy of this message
 ID:               30326
 Updated by:       php-bugs@lists.php.net
 Reported By:      adamsbarker at hotmail dot com
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         ZZiplib Related
 Operating System: Windows XP
 PHP Version:      5.0.2
 New Comment:

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:
------------------------------------------------------------------------

[2004-11-28 13:54:56] tony2001@php.net

Please, check that your web-server has all necessary NTFS permissions
to read this file.

------------------------------------------------------------------------

[2004-10-07 01:13:16] adamsbarker at hotmail dot com

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 :)

------------------------------------------------------------------------

[2004-10-06 11:22:00] derick@php.net

it probably means that the working directory is different then you
think it is. What does echo getcwd(); output?

------------------------------------------------------------------------

[2004-10-06 11:19:50] adamsbarker at hotmail dot com

yes, both the "php" and "zip" files are in the same directory... i
completely removed php and got copies of the latest stable version/PECL
extensions for Windows, but still the same problem... this problem seems
to be running throughout the versions, since i first noticed it a couple
of months ago.

------------------------------------------------------------------------

[2004-10-06 01:17:29] iliaa@php.net

Is the script being ran from the same directory as the one where the
zip file is?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/30326

-- 
Edit this bug report at http://bugs.php.net/?id=30326&edit=1


Thread (12 messages)

« previous php.bugs (#69819) next »