• 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

How to create laravel storage symbolic link for production or sub domain system?

How to install LDAP in Docker php-fpm alpine

how to youtube api data to print in toolset metabox using a button click before save-post

How to programmatically find public properties of a class from inside one of it's methods

error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

Laravel Unknown Column 'updated_at'

Limit WooCommerce products in cart only from one custom taxonomy

Need to display only array value in JSON output

str_word_count() function doesn't display Arabic language properly

Get lat/lon from google maps url ftid (hex)

How can I make a full text index of the column?

Display a product custom field only in WooCommerce Admin single orders

Add record for each array elements if missing in table

Unable to match results of php hash_hmac() and coldfusion hmac()

Performance of foreach, array_map with lambda and array_map with static function

About Contact Privacy policy Terms and conditions