• 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

PHP Get value from JSON [duplicate]

Converting alphabet letter to alphabet position in PHP [duplicate]

I cannot create a auto generated date time in mysql workbench

Symfony there are no commands defined in the "make" namespace

What is my SQL missing?

Add customer email and phone in "Order" column to admin orders list on Woocommerce

WordPress Subquery returns more than 1 row on SELECT

PHP/HTML: Creating A SubMenu

I need to link Google Sheet with my Laravel

Connecting an HTML webpage to a SQL Server

How to show a popup modal in codeIgniter?

html-php form submission after validation through JavaScript [closed]

Explain how this array transposing and flattening function works

PHP -> Next nearest date defined by array of days in week

301 Redirect to remove query string on homepage only

About Contact Privacy policy Terms and conditions