• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

backup files to google drive using PHP

phpmysqlgoogle-drive-api


PHP Snippet 1:

// User home directory (absolute)
$homedir = trim(shell_exec("cd ~ && pwd"))."/"; // If this doesn't work, you can provide the full path yourself
// Site directory (relative)
$sitedir = "www/";

PHP Snippet 2:

// User home directory (absolute)
$homedir = "/home/mhmd2991/"; // <-- FIXED HERE
// Site directory (relative)
$sitedir = "public_html/";

Related Snippets

Upgrade PHP on AWS Linux

Auto increment id JSON

Redis Command To Sort Keys

Laravel - Implicit route model binding with soft deleted data

Laravel PHP: multiple project run at the same time [closed]

how to upload binary image to sql server using php laravel

How to insert Google Adsense Code in PHP script?

woocommerce_wp_select options array from product attribute terms

Querying only one row from a one to many relationship laravel

Sort a multidimensional array by integer inside of a string value which is two levels down

Doctrine ORM: Excluding Records Based on Values of Nested Relationships

Laravel : How to Create Dropdown to Select FOREIGN KEY from Other Table?

Webscraping Symfony/Panther: Can't get HTML

Php - Sum up the numbers in an array one by one

Add and update products to session cart in Laravel

About Contact Privacy policy Terms and conditions