Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder
    Join Date
    May 2006
    Thanked 4 Times in 4 Posts

    What does this File Error mean ? ( no. 19 )


    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:

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

    if (!
    $file_zip) {
    write_log("Could not find  $file_zip\r\n Error # $err\r\n");  
    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");  
    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 ?


    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.

  2. #2
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Behind the Wall
    Thanked 441 Times in 437 Posts
    "Not a Zip Archive"
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts