PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Sep 21, 2018 7:35 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 44 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: Sun Apr 02, 2006 2:10 am 
Offline
Forum Contributor

Joined: Sat Feb 08, 2003 3:36 am
Posts: 110
Location: San Jose, CA
I found an email attachments script that does what I want, and is probably better - now I can trigger the script with the zip function in it at regular intervals and have the zipped file emailed to me... set it, and forget it! :lol:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 04, 2006 8:40 am 
Offline
Forum Newbie

Joined: Tue Apr 04, 2006 8:32 am
Posts: 3
Great Class,

Now I have noticed some problems if you use windows XP to compress a file

(eg right click on file -> send to -> compressed (zipped) file)

and then try to extract it with zipextract.cls.php, it throws this error:

Quote:
Notice: Failed to extract file (0) incompatable file attributes in C:\apachefriends\xampp\htdocs\zipclass\zipextract.cls.php on line 339


This had me stumped for a good hour and I was thinking: why do some .zip work and some not!!!! arrrrggggghhhhh

Anyway it works fine if you compress the files using winace or winzip, but it would be cool if it could some how work with the native windows compression utility as this is so damn quick, basically 2 clicks and you have the archive done.

It is probably worthy noting that this is a big "trap for young players" so it may be worth noting this somewhere conspic....

Thanks for the great class - it is the best one I have found, and the easiest to implement with exiting systems.

-Lobos


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 04, 2006 9:07 pm 
Offline
Forum Regular

Joined: Thu Dec 18, 2003 4:58 pm
Posts: 836
Hmmm, any chance you could send me a couple of sample .zip files created with XP's native compression utility?

It's entirely possible I've not accounted for an entirely feasible/legitamate file attribute flag, or it could be that XP is using some odd flag within the attributes. Either way, I currently don't have access to an XP machine, so could really do with some sample data to work with and have a look at what the difference is between XP's and PK's compression formats.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 6:27 am 
Offline
Forum Newbie

Joined: Tue Apr 04, 2006 8:32 am
Posts: 3
Hi I have made some xp samples and sent the links to you via PM.

Please keep us updated :)

-Lobos


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 8:01 am 
Offline
Forum Regular

Joined: Thu Dec 18, 2003 4:58 pm
Posts: 836
Thanks,

I'll keep you updated with any findings.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 8:50 am 
Offline
Forum Regular

Joined: Thu Dec 18, 2003 4:58 pm
Posts: 836
A combination of my misreading the .zip file format spec and XP's compression util following the spec more closely than the majority of other compression utils.

I've PM'd you a download link to the revised extraction class.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 9:05 am 
Offline
Forum Newbie

Joined: Tue Apr 04, 2006 8:32 am
Posts: 3
Thanks for the prompt update, it now works fine :)

-Lobos


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 9:11 am 
Offline
Admin
User avatar

Joined: Wed Aug 13, 2003 7:02 am
Posts: 4522
Location: York, UK
redmonkey wrote:
A combination of my misreading the .zip file format spec and XP's compression util following the spec more closely than the majority of other compression utils.

I've PM'd you a download link to the revised extraction class.


Could you post the new code here.

Interested myself.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 9:14 am 
Offline
Forum Regular

Joined: Thu Dec 18, 2003 4:58 pm
Posts: 836
Given that it's actually the extraction class, I'll update the code contained with the actual relevant thread a bit later today.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 9:24 am 
Offline
Admin
User avatar

Joined: Wed Aug 13, 2003 7:02 am
Posts: 4522
Location: York, UK
Okay, thanks :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 10:04 am 
Offline
Forum Regular

Joined: Thu Dec 18, 2003 4:58 pm
Posts: 836
Extraction class source has been updated on relevant thread


Top
 Profile  
 
 Post subject: good class
PostPosted: Mon Apr 24, 2006 6:13 am 
Offline
Forum Contributor
User avatar

Joined: Wed Oct 19, 2005 5:14 am
Posts: 491
Location: Nepal
good work! Finally I found the zip creation class. Is there any alternate class which can create and extract the zip class as well ? I'll search in this forum too...

Cheers,
Dibyendra


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 25, 2006 5:42 am 
Offline
Forum Regular

Joined: Thu Dec 18, 2003 4:58 pm
Posts: 836
If you haven't found it already, the complimentary extraction class can be found here.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 08, 2007 12:37 pm 
Offline
Forum Newbie

Joined: Sun Dec 03, 2006 11:43 pm
Posts: 12
ok so what do i do if i want to back up the entire public_html folder and everything in it
if i set zip_dir to public_html i get the Warning: chdir(): No such file or directory (errno 2) in /home/tstprogr/public_html/backupZip.php on line 24


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 44 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group