• 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

CONCAT columns with Laravel 5 eloquent

phpunit - testing is painfully slow

Insert And Retrieve Data in MySQL with $.post Noob Question

MySQL default time format UTC or GMT?

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

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

Xdebug can't connect back to Docker host

How do I call Validator from a namespace with an already existing Validator class

WordPress - Dynamically add user ID to the end of a URL

PHP my timezone is no setting up in PHP.ini File in xampp

How should I get started using PHPUnit as a testing framework for a bunch of functions and classes I have already made?

CSV to PHP class properties

Adding the custom page with add_menu_page function on Wordpress

Undefined Array Key error when uploading image on php

How to use PHPCBF to fix one issue at a time?

About Contact Privacy policy Terms and conditions