Topic: Creating Zip from Directory (Read 854 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. 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:
Posts: 6486
39748 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?
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:
Posts: 6486
39748 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
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