/    Sign up×
Community /Pin to ProfileBookmark

Can anyone help me with this file error problem ?

Hi,

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

[B]My log gives this output:[/B]

[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

[/QUOTE]

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”);
}
[/code]

This ZipArchive is working fine in a similar script that donsloads a different
file. Does anyone know what [B]Error # 19[/B] means and how
I can cure it ?

Thanks

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@ericatekkaMar 01.2010 — Zip archive error codes.

ZIPARCHIVE::ER_EXISTS - 10

ZIPARCHIVE::ER_INCONS - 21

ZIPARCHIVE::ER_INVAL - 18

ZIPARCHIVE::ER_MEMORY - 14

ZIPARCHIVE::ER_NOENT - 9

ZIPARCHIVE::ER_NOZIP - 19

ZIPARCHIVE::ER_OPEN - 11

ZIPARCHIVE::ER_READ - 5

ZIPARCHIVE::ER_SEEK - 4
×

Success!

Help @jeddik spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...