View Full Version : Parse error
Parse error: parse error, unexpected $ in /www/f/frontierindi/htdocs/administrator/includes/pcl/pclzip.lib.php on line 1170
I am trying to add a component in Mambo. Any ideas?
can you post lines 1160-1170 of that file? Probably a missing } or ; or something similar.
Yes please Here is 1160 till 1170
function merge($p_archive_to_add)
{
//--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, "PclZip::merge", "");
$v_result = 1;
// ----- Reset the error handler
$this->privErrorReset();
// ----- Check archive
if (!$this->privCheckFormat()) {
//--(MAGIC-PclTr
RTH10260
8-19-05, 12:34 AM
add another 5 lines of code that follow above snippet, please.
// --------------------------------------------------------------------------------
// Function : merge()
// Description :
// This method merge the $p_archive_to_add archive at the end of the current
// one ($this).
// If the archive ($this) does not exist, the merge becomes a duplicate.
// If the $p_archive_to_add archive does not exist, the merge is a success.
// Parameters :
// $p_archive_to_add : It can be directly the filename of a valid zip archive,
// or a PclZip object archive.
// Return Values :
// 1 on success,
// 0 or negative values on error (see below).
// --------------------------------------------------------------------------------
Here it is. :)
this is from pclzip.lib.php?
Sorry, I'm not seeing any mistakes. Nothing that should give a syntax error, at least. Maybe someone else can see it. Can you by any chance zip up the whole file and make it available for download somewhere? I'd like to look at the whole thing in its entirety. :) Alternately, maybe some other gentleman here can figure out what's wrong with it.
vBulletin v3.6.0, Copyright ©2000-2010, Jelsoft Enterprises Ltd.