Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-28-2010, 09:35 PM   PM User | #1
jeddi
Senior Coder

 
Join Date: May 2006
Posts: 1,526
Thanks: 26
Thanked 4 Times in 4 Posts
jeddi has a little shameless behaviour in the past
What does this File Error mean ? ( no. 19 )

Hi,

I am running ZipArchive on a downloaded zipped file
and I am getting An Error No. 19.

My log gives this output:

Quote:
-Saved as file: /home/guru54gt5/public_html/sys/a_xml_file.zip
-File size: 278528 bytes
Found: /home/guru54gt5/public_html/sys/a_xml_file.zip
Could not open /home/guru54gt5/public_html/sys/a_xml_file.zip
Error # 19
This is the script I am running:

PHP Code:
if (!class_exists('ZipArchive')) {
   
write_log("Class ZipArchive not found\r\n");
     
   exit;
} else {
    
$zip = new ZipArchive;
}

if (!
$file_zip) {
    
write_log("Could not find  $file_zip\r\n Error # $err\r\n");  
    exit;
        } 
else {
    
write_log("Found: $file_zip\r\n");
    }

if ((
$err $zip->open($file_zip)) !== true) {
    
write_log("Could not open  $file_zip\r\n Error # $err\r\n");  
    exit;
        } 
else {
    
write_log("File opened: $file_zip\r\n");
    } 
This ZipArchive is working fine in a similar script that donsloads a different
file. Does anyone know what Error # 19 means and how
I can cure it ?


Thanks



.
__________________
If you want to attract and keep more clients, then offer great customer support.

Support-Focus.com. automates the process and gives you a trust seal to place on your website.
I recommend that you at least take the 30 day free trial.
jeddi is offline   Reply With Quote
Old 03-01-2010, 05:08 AM   PM User | #2
Dormilich
Senior Coder

 
Dormilich's Avatar
 
Join Date: Jan 2010
Location: Behind the Wall
Posts: 2,882
Thanks: 9
Thanked 291 Times in 287 Posts
Dormilich is on a distinguished road
"Not a Zip Archive"
__________________
please post your code wrapped in [CODE] [/CODE] tags
Dormilich is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:35 AM.


Advertisement
Log in to turn off these ads.