Atari ST fan
Posts: 7
42 credits Members referred : 0
« Reply #29 on: Nov 13, 2007, 05:01:30 PM »
I solved the problem, thank you.
Regards, Alex
« Last Edit: Nov 13, 2007, 08:35:40 PM by alexro »
I crack Photoshop!
Posts: 3
18 credits Members referred : 0
« Reply #30 on: Nov 24, 2007, 07:33:01 PM »
I'm not sure what to do with the classes file... im getting this error: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/public_html/tmp/createzip.php on line 11
Code:
<?php
/** * Class to dynamically create a zip file (archive) * * @author Rochak Chauhan */
class createZip {
public $compressedData = array(); public $centralDirectory = array(); // central directory public $endOfCentralDirectory = "\x50\x4b\x05\x06\x00\x00\x00\x00"; //end of Central directory record public $oldOffset = 0;
/** * Function to create the directory where the file(s) will be unzipped * * @param $directoryName string * */
public function addDirectory($directoryName) { $directoryName = str_replace("\\", "/", $directoryName);
I crack Photoshop!
Posts: 3
18 credits Members referred : 0
« Reply #31 on: Nov 25, 2007, 02:24:07 AM »
Ok I don't know much php but I think its this:
Code:
class createZip { public $compressedData = array(); public $centralDirectory = array(); // central directory public $endOfCentralDirectory = "\x50\x4b\x05\x06\x00\x00\x00\x00"; //end of Central directory record public $oldOffset = 0;
It doesn't have a the ( ) part like this one does:
Code:
public function addDirectory($directoryName) {
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6486
39748 credits Members referred : 374
oh, well that sucks... is it easy to modify to work with php 4.3.9?
you need to remove the "public , private" keywords and maybe you need to replace some php5 only functions...(better is a modern php5 enabled webserver, php4 will stop the development at the end of this year)
Do you upload all three files (CreateZipFile.php, CreateZipFileMac.zip.php, exampleScript.php) to any location on your server?
And then what do you do?
Thank You!
EDIT: By the way, i just have a collection of individual files that i want the user to be able to select from (checkboxes?) which would then be added to one zip file for them to download.
« Last Edit: Nov 30, 2007, 05:32:14 AM by rw1 »
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7291