0

I want to upload a file to google drive. For that, I am using this tutorial and downloaded it from here, but I am getting this error message :

Fatal error: Uncaught exception 'Exception' with message 'Google PHP API Client requires the CURL PHP extension' in C:\wamp\www\upload_google_drive\Google-Drive-PHP-API\google-api-php-client\src\Google_Client.php on line 21

My php curl is enabled and I have Client Id and Client Secret Key.

user3653474
  • 3,393
  • 6
  • 49
  • 135
  • a [solution](http://stackoverflow.com/questions/13021536/how-to-enable-curl-in-wamp-server). Hope it helps! – ramabarca Aug 17 '15 at 15:20

1 Answers1

1

That tutorial is not up to date, there were some changes in the API. Try the simple media uploader from the Google Drive API page and go from there. If there's any specific function you want to do just feel free to ask!

https://developers.google.com/drive/web/quickstart/php

Apparently they changed the quickstart for it to list just the items, but just check the upload or insert part in the REST API and you're good to go.

Rg14
  • 300
  • 1
  • 14