Slammer Posted April 27, 2010 Share Posted April 27, 2010 Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/littl142/public_html/install/classes/ToolsInstall.php on line 4I'm hosted at Lunar Pages and and I'm using PHP5...What's the issue?? Link to comment Share on other sites More sharing options...
rocky Posted April 28, 2010 Share Posted April 28, 2010 Topic renamed - please don't write in capitalsI understand you have PHP5 installed, but are you sure it is actually activated? Create the following file to test your PHP version: <?php phpinfo(); ?> This is what I have on line 4 of my install/classes/ToolsInstall.php: public static function checkDB ($srv, $login, $password, $name, $posted = true) I can't see anything that would cause problems, except maybe the "= true" part. I'm not sure whether that works on older PHP versions. Link to comment Share on other sites More sharing options...
Slammer Posted April 28, 2010 Author Share Posted April 28, 2010 Thanks Rocky!Prior to receiving your response, I went into my cpanel and switched PHP5 off, then on and the script worked.So to everyone who encounters this problem - don't believe your control panel when it says PHP5 is "active".Thanks again..... Link to comment Share on other sites More sharing options...
rocky Posted April 28, 2010 Share Posted April 28, 2010 Glad it was that easy. Please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now