Jump to content

[SOLVED] Parse Error - createZip Class


tarun

Recommended Posts

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/www/tpatelphp.awardspace.com/custom/createZip.inc.php on line 11

 

01. <?php
02. 
03. /**
04. * Class to dynamically create a zip file (archive)
05.  *
06.  * @author Rochak Chauhan
07.  */
08.
09. class createZip {  
10.
11.	public $compressedData = array(); 
12.	public $centralDirectory = array(); // central directory   
13.	public $endOfCentralDirectory = "\x50\x4b\x05\x06\x00\x00\x00\x00"; //end of Central directory record
14.	public $oldOffset = 0;
15.

 

 

Can't Figure Out The Problem With It

If This Helps Its From The PHP createZip Class

Link to comment
Share on other sites

Unless you know the differences between 4 and 5 it might be easier to just find another class.

 

You could try simply removing any visability declarations (public, private, protected) and see how you go.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.