I want to remove syntax error from a php script file. After hour of checking i could not remove them, How could be these identified?
1st one is Parse error: syntax error, unexpected ')'
on second line of below code:
require( "./sources/misc/classes.php" );
( );
if ( file_exists( "./sources/sql/sql.php" ) )
{
require( "./sources/sql/sql.php" );
}
else
{
header( "Location: install/" );
}
And also it gives error on line on as Parse error: syntax error, unexpected '['
on first line of below code:
if ( [$FORM['ajax']]isset( $FORM['ajax'], $aj ) )
{
require( "./sources/{$FORM['ajax']}.php" );
( );
$base->$FORM['x']( );
}
Will you help me identify and understand errors? and Why they come?