Hi folks...Am new here, and a php newbie and i have run into the following issue when installing some php software on one of my websites...
The error i get on page is...
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING or T_VARIABLE or '$' in /root_dir/my_domain/public_html/my_folder/classes/database.php on line 339
I have highlighted in red/bold, line 339.
Have been doing various google searches on this and is stumped..Can anyone shed any light on this please??
( I've had to cut most of the php page code out, as its too big to post here....I've left in a few lines prior to the line in question, and some after...
$this->compress = true;
}
else
{
$this->compress = false;
}
if ( !openFileToRead( $fname ) )
{
return 0;
}
$query = "";
while ( !_eof( ) )
{
$line = _gets( );
$first = substr( $line, 0, 1 );
if ( !empty( "line" ) && $first != "-" && $first != "" && $first != "#" )
{
if ( $replace )
{
$line = str_replace( "PREFIX", $replace, $line );
}
if ( oneQueryStr( $line ) )
{
executeQuery( $query );
$query = "";
$query .= trim( $line );
}
else
{
$query .= trim( $line );
}
if ( substr( $query, 0 - 1, 1 ) == ";" )
{
$ans = executeQuery( $query );
$query = "";
}
}
}
closeFile( );
return 1;
}
}