Sublime directory Surf the web anonymous Pagerank Monitor


Creating Zip from Directory

dashifen
Wed 10 October 2007, 06:46 pm GMT +0200
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.


olaf
Wed 10 October 2007, 07:16 pm GMT +0200
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?

dashifen
Wed 10 October 2007, 07:52 pm GMT +0200
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.

olaf
Wed 10 October 2007, 09:56 pm GMT +0200
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

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional