Hi,
I am running [B]ZipArchive
and I am getting An Error No. 19.
[B]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:
[code=php]
if (!class_exists(‘ZipArchive’)) {
write_log(“Class ZipArchive not foundrn”);
exit;
} else {
$zip = new ZipArchive;
}
if (!$file_zip) {
write_log(“Could not find $file_ziprn Error # $errrn”);
exit;
}
else {
write_log(“Found: $file_ziprn”);
}
if (($err = $zip->open($file_zip)) !== true) {
write_log(“Could not open $file_ziprn Error # $errrn”);
exit;
}
else {
write_log(“File opened: $file_ziprn”);
}
This ZipArchive is working fine in a similar script that donsloads a different
file. Does anyone know what [B]Error # 19
I can cure it ?
Thanks