Upload file to Google Drive with PHP/cURL and API REST v3 (without Client Library)
- Category: Google
- Hits: 79457
So this is supposed to be a quick article detailing how I used a PHP function to upload a video file to Google Drive. Note that this example does not involve installing the Google Client Library for PHP. So no classes or built-in functions that you didn't write or know what they're doing.
Why?
The objective here is to upload a video file to my Google Drive. This assumes you have already "Enabled the Drive API" via your Google Developers console as well as gotten your OAuth 2.0 access/refresh tokens and specified the appropriate scopes.
The scopes I chose were to do with getting a working example rather than the recommended scope, though you may only need the first (untested):
https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
How?
I've listed below 3 methods, the first follows the manual (or the logic thereof as I don't use the client library) and is a function sending two requests, the second is the appropriate multipart function which uploads and names the file in a single request, and the third is a 'nice-to-have' upload to the specified folder.
Google's video on The Mobile Movement: Understanding Smartphone Consumers
- Category: Google
- Hits: 10435
Free Translator API using Google
- Category: Google
- Hits: 28180
So this is a quick article to get your Google Translation services working with your website.
Why?
At time of print, Google now charge for every 2,000,000 characters (2 million) every month.
Microsoft's Bing has added itself to the fray pretending to offer free services but in the small print, you will find they too charge the same price.
How?
Windows 7 and Google Chrome incognito mode by default
- Category: Google
- Hits: 34828
Basically if you've just started using "incognito" mode with the Google Chrome web-browser, this article is just how to switch the quick launch shortcut (next to your start button). All the articles I googled were windows vista so I thought I'd share one for windows 7 here. I'm actually only saving you a click as you can just right-click on the google chrome icon and select "New Incognito Window". This is just how to set it by default (useful if you do online banking, shopping, etc).
Keyboard and mouse shortcuts in Google Chrome
- Category: Google
- Hits: 51119
Keyboard and mouse shortcuts are combinations of keyboard strokes and mouse clicks that you can use to perform specific actions. Knowing some of the Google Chrome shortcuts listed below can help save you time.
Does Google Chrome Frame really improve performance
- Category: Google
- Hits: 21894
The jury's still out on this one. I have noticed a slight improvement in my page loads but will have to carry out proper tests on the weekend.
Instructions to a hard-coder
The Google Chrome Frame (or ChromiumBrowser) is quick to enable. Simply ask your webmaster to put the following meta tag in between the head tags of the page:
Google Chrome's YouTube Video
- Category: Google
- Hits: 11238
Shame the soundtrack is so corny but otherwise I liked this video...
{youtube}PqfwNbB0QqQ{/youtube}How to use download managers with Google Chrome
- Category: Google
- Hits: 24828
Apparently everyone knows how to download FLV videos from web addresses which use the Youtube syntax:
http://www.youtube.com/watch?v=

