Jump to content

[SOLVED] Parse error on install


Recommended Posts

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 4

I'm hosted at Lunar Pages and and I'm using PHP5...

What's the issue??

Link to comment
Share on other sites

Topic renamed - please don't write in capitals

I 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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...