...

View Full Version : What does this File Error mean ? ( no. 19 )



jeddi
02-28-2010, 09:35 PM
Hi,

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

My log gives this output:


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



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



.

Dormilich
03-01-2010, 05:08 AM
"Not a Zip Archive"



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum