PHP scripts to download files from Google Drive
https://developers.google.com/drive/api/guides/manage-downloads?hl=ru#php
1. there is a folder on the Google disk in the folder is 1 file or 5 files for example.Let’s take an example with one file.I need a php script in which I will put, for example, the path to the folder => Google disk => in which the file lies; (the file has a new name every day, for example, 27,03,2023 xml, xls, etc..)I start the script, after performing it downloads the file to my server (in the root) and gives the file the right name for example 11111.
If it’s 5 files (as you’ll be easier but they’ll have to be as well named, that would be possible in the future to work with the films.. 1,2,3,4,5 as you want..)A beautiful solution in the hidden.
The task:
If you look at the screens there you will see that you need libraries and files such as:
by vendor/autoload.php
– Google Service Drive;
The Google Client;
1 .You send me an archive in which I need to submit the API key if necessary.
2ndA simple video screen with instructions how to get this key from my Google account.(To save your time and your time.)ThreeShow where in the script to insert the path to the folder and the name of the file (which will be downloaded.)I’m testing if everything works = work is done.
Domain for work and ftp prepared.2. the link with the file to the Google disk is also prepared.I will be 28.03.2023 at 11:00 a.m..
https://developers.google.com/drive/api/guides/manage-downloads?hl=ru#php
Applications 1
Work results
Client's review of cooperation with Vladislav Pro
PHP scripts to download files from Google DriveThank you very much! Vladislav made the script as I asked, made a great step-by-step instructions how to use. I recommend cooperation! Happiness !
Freelancer's review of cooperation with Sanya Dimov
PHP scripts to download files from Google DriveThank you for the interesting project, I have not worked with Google Drive for a long time, refreshed in memory.
Current freelance projects in the category PHP
Integration of the "Where to Watch" block (Laravel / Livewire)It is necessary to implement the integration of an external streaming platform for a website about movies and series on Laravel / Livewire. What needs to be done: Implement the import of an external content catalog that is updated once a day. Match content by IMDb ID and/or TMDB… PHP, Web Programming ∙ 1 hour 43 minutes back ∙ 18 proposals |
Refinement of the existing project on Laravel (PHP)Need to refine an existing project on Laravel (PHP). The project includes a ready-made admin panel that has a builder inside it for creating pages through it with layout (html+css+js) using PHP code for data output. In the project, it is necessary to implement 2-3 pages based… Content Management Systems, PHP ∙ 5 hours 19 minutes back ∙ 30 proposals |
New store on Woocommerce
2308 USD
Looking for a developer to create an online store on Woocommerce. Project - a store for daily promotions, popular products in limited quantities. What is already available: layout of all pages (showcase, checkout, content pages, customer account), corporate identity, logo,… PHP, Web Programming ∙ 7 hours 40 minutes back ∙ 86 proposals |
Need to make improvements on the Modx Evolution CMS 3.1.7 site.
22 USD
The design refinement and layout of the website are being developed, and these works will need to be implemented on the site.Also, some adjustments need to be implemented on the site. HTML & CSS, PHP ∙ 11 hours 45 minutes back ∙ 21 proposals |
Implementation of a technical SEO audit on OpenCartGood day. Need to implement technical SEO fixes on the site softugo.com. The site is already developed but not fully launched yet. Platform: ocStore 3.0.2.0 / OpenCart + custom code. Hosting: Hostinger. Current PHP version: 7.3. (transition to PHP 8.2 is planned) A checklist… PHP, Web Programming ∙ 1 day 9 hours back ∙ 58 proposals |