13, October 2008

Creating Zip from Directory - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Miscellaneous scripts or snippets (Moderator: Olaf)
Topic: Creating Zip from Directory
« previous next »
Pages: [1] Print

Author Topic: Creating Zip from Directory  (Read 779 times)
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« on: Oct 10, 2007, 07:46:44 PM »

I was directed here from the comments section  here Visit through proxy.  I've implemented the technique therein, and all seemed well when a zip file is created, but I can't open it.  The size of the file is appropriate for my tests, but the zip file is invalid.  I'm on a Windows system running PHP 5 and I use 7-zip to handle zip files. 

Just for kicks, I tried it on PHP 4 and, after converting the linked zip creating class from phpclasses.org from a PHP 5 class to a PHP 4 one, got the same results.

Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6349
38918 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Oct 10, 2007, 08:16:19 PM »

Hi, and welcome at webdigity!

I think the problem could be the windows server, never tried this script with a windows machine.

do you changed any code from the orig. class in your PHP4 version?


Last blog : Upload images for usage in TinyMCE
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« Reply #2 on: Oct 10, 2007, 08:52:52 PM »

I think the problem could be the windows server, never tried this script with a windows machine.

I was afraid of that.

Quote
do you changed any code from the orig. class in your PHP4 version?

Not really.  Just had to remove the public keywords from the file and initialize the object properties correctly with the var keyword.  Regardless, it didn't work on PHP 4 or PHP 5 on windows.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6349
38918 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Oct 10, 2007, 10:56:17 PM »

funny never checked the class code Smiley

Try to contact Rochak Chauhan (the class author), maybe he has some experience with windows zips

Maybe you can try exactly the same code on a linux machine to be sure that there something else


Last blog : Upload images for usage in TinyMCE
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7214
Tags : createzip Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Miscellaneous scripts or snippets (Moderator: Olaf)
Topic: Creating Zip from Directory
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Oct 13, 2008, 08:31:04 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 36.942
Total Topics: 7.560
Total Members: 4.153
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Chalky566

25 Guests, 5 Users online :

16 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.