I'm new to PHP and MySQL. When I run my files on the localhost, everything runs just perfect! But when I upload all files to live real domain I get this:
PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\Domains\xyz.com\wwwroot\123\index.php on line 26
This is line 26 in index.php:
GetApplication()->GetUserAuthorizationStrategy()->ApplyIdentityToConnectionOptions($result);
My web hosting provider has PHP and MySQL.
Any help is highly appreciated.
This is it:
function GetConnectionOptions()
{
$result = GetGlobalConnectionOptions();
$result['client_encoding'] = 'utf8';
GetApplication()->GetUserAuthorizationStrategy()->ApplyIdentityToConnectionOptions($result);
return $result;
}
;
) – Michael Berkowski Jan 23 '13 at 14:10GetApplication()
apparently doesn't return an object – John Conde Jan 23 '13 at 14:10