13, February 2012

Creating Zip from Directory - webmaster forum

 
Webdigity webmaster forums
[ 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 1815 times)
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« on: Oct 10, 2007, 06:46:44 pm »

I was directed here from the comments section  here.  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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Oct 10, 2007, 07: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 : A new Wordpress theme for our blog
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« Reply #2 on: Oct 10, 2007, 07: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Oct 10, 2007, 09: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 : A new Wordpress theme for our blog
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7214
Tags : createzip Bookmark this thread : Digg Del.icio.us Dzone more....

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?
Feb 13, 2012, 05:12:32 pm





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!






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