Do you guys know the reason why google api is not working when I put my website on a web server (go daddy) and how to fix it? but it is working good in localhost?
include 'system/includes/connection.php';
require __DIR__ . '/googleApi/vendor/autoload.php';
$client = new \Google_Client();
$client->setApplicationName('Google Sheets and PHP');
$client->setScopes([\Google_Service_Sheets::SPREADSHEETS]);
$client->setAccessType('offline');
$client->setAuthConfig('client_credentials.json');
$service = new Google_Service_Sheets($client);
This is the error its showing in my error log. [08-Aug-2020 01:38:38 Asia/Manila] PHP Parse error: syntax error, unexpected ':', expecting '{' in/home/y2efod66lc11/public_html/googleApi/vendor/guzzlehttp/guzzle/src/functions.php on line 14
this is what inside function.php https://hasteb.in/egehofos.xml