Page 1 of 1
Parse error: syntax error, unexpected T_STRING in /home/....
Posted: Wed May 27, 2009 12:03 pm
by newbtophp
I get this error when accessing index.php
"Parse error: syntax error, unexpected T_STRING in /home/dechost/public_html/index.php on line 2"
My line 2:
Code: Select all
define('CRACK_ROOT',dirname(__FILE__ ? __FILE__ : getenv('SCRIPT_FILENAME')));
Can anyone help?
Thanks
Re: Parse error: syntax error, unexpected T_STRING in /home/....
Posted: Wed May 27, 2009 12:21 pm
by anand
newbtophp wrote:I get this error when accessing index.php
"Parse error: syntax error, unexpected T_STRING in /home/dechost/public_html/index.php on line 2"
My line 2:
Code: Select all
define('CRACK_ROOT',dirname(__FILE__ ? __FILE__ : getenv('SCRIPT_FILENAME')));
Can anyone help?
Thanks
Did you add an
; in previous line?
Re: Parse error: syntax error, unexpected T_STRING in /home/....
Posted: Wed May 27, 2009 12:57 pm
by newbtophp
anand wrote:newbtophp wrote:I get this error when accessing index.php
"Parse error: syntax error, unexpected T_STRING in /home/dechost/public_html/index.php on line 2"
My line 2:
Code: Select all
define('CRACK_ROOT',dirname(__FILE__ ? __FILE__ : getenv('SCRIPT_FILENAME')));
Can anyone help?
Thanks
Did you add an
; in previous line?
Problem Solved. Thanks!

Re: Parse error: syntax error, unexpected T_STRING in /home/....
Posted: Wed May 27, 2009 1:22 pm
by anand
newbtophp wrote:
Problem Solved. Thanks!

Welcome.