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.