#30326 [Fbk-Opn]: zip_open cannot open file

2004-10-06 Thread adamsbarker at hotmail dot com
 ID:   30326
 User updated by:  adamsbarker at hotmail dot com
 Reported By:  adamsbarker at hotmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: ZZiplib Related
 Operating System: Windows XP
 PHP Version:  5.0.2
 New Comment:

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.


Previous Comments:


[2004-10-06 01:17:29] [EMAIL PROTECTED]

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



[2004-10-05 02:45:02] 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






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


#30326 [Fbk-Opn]: zip_open cannot open file

2004-10-06 Thread adamsbarker at hotmail dot com
 ID:   30326
 User updated by:  adamsbarker at hotmail dot com
 Reported By:  adamsbarker at hotmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: ZZiplib Related
 Operating System: Windows XP
 PHP Version:  5.0.2
 New Comment:

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


Previous Comments:


[2004-10-06 11:22:00] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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



[2004-10-05 02:45:02] 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






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