Guest Posted June 1, 2010 Share Posted June 1, 2010 When upgrading, error comes and the page is blank with the following information:Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/jansh0/public_html/install/classes/ToolsInstall.php on line 4Anybody knows why? <?phpclass ToolsInstall{ public static function checkDB ($srv, $login, $password, $name, $posted = true) { include_once(INSTALL_PATH.'/../classes/Validate.php'); include_once(INSTALL_PATH.'/../classes/Db.php'); include_once(INSTALL_PATH.'/../classes/MySQL.php'); if($posted) { // Check POST data... $data_check = array( !isset($_GET['server']) OR empty($_GET['server']), !Validate::isMailName($_GET['server']), !isset($_GET['type']) OR empty($_GET['type']), !Validate::isMailName($_GET['type']), !isset($_GET['name']) OR empty($_GET['name']), !Validate::isMailName($_GET['name']), !isset($_GET['login']) OR empty($_GET['login']), !Validate::isMailName($_GET['login']), !isset($_GET['password']) ); foreach ($data_check AS $data) if ($data) return 8; } Link to comment Share on other sites More sharing options...
rocky Posted June 2, 2010 Share Posted June 2, 2010 That error to very similar to the one that appears when you are using PHP4. Are you sure PHP5 is activated? Did you have a line in your .htaccess file to enable PHP5 that was inadvertently deleted when you upgraded? Link to comment Share on other sites More sharing options...
Guest Posted June 2, 2010 Share Posted June 2, 2010 Thank you Rocky, you are right, solved. 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