• 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

Make survey at laravel 5.4 and MySQL

Inserting Country Selection into MySQL PHP [duplicate]

PHPS source file - 403 Forbidden You don't have permission to access this resource

How do I enable error reporting in Laravel?

Using Associative arrays

Use Python plotly chart in PHP

PHP: remove filename from path

Edit product hook WooCommerce

Laravel 5.1 how to use {{ old('') }} helper on blade file for radio inputs

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

How to loop sql table data inside a html table

How to load Codeigniter 4 lang file into an array variable

Laravel after login Two factor not working

MySQL/PHP - Web Based Game -User specific inventory table or 1 giant table? Another option?

MISSING UPDATES FOR: MEDIA Drupal 9

About Contact Privacy policy Terms and conditions