• 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

Facebook API, get page post link (PHP)

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

Why does array_map() with null as callback create an "array of arrays"?

How can I create a Download Page with post php method?

Converting alphabet letter to alphabet position in PHP [duplicate]

how to hide previous markers when new markers added in google map javascript api

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

How to override htaccees file for cache control header

Can't find vendor/autoload.php for Ratchet

Symfony run hint kernel.secret parameter not found

JSON Render Issue in Date Object Laravel and PHP 7.4

Inserting Country Selection into MySQL PHP [duplicate]

How to change the app environment at run time?

PHP returning an error message and false

Symfony - "framework.test" config is not set to true

About Contact Privacy policy Terms and conditions