Skip to content

Instantly share code, notes, and snippets.

@andreykin
andreykin / backup.php
Last active August 8, 2018 03:01 — forked from menzerath/backup.php
PHP: Recursively Backup Files & Folders to ZIP-File
<?php
/*
* PHP: Recursively Backup Files & Folders to ZIP-File
* MIT-License - Copyright (c) 2012-2017 Marvin Menzerath
*/
// Make sure the script can handle large folders/files
ini_set('max_execution_time', 600);
ini_set('memory_limit','1024M');
@andreykin
andreykin / nginx-pma.conf
Last active November 11, 2016 16:06 — forked from denys281/nginx.conf
phpmyadmin nginx virtual host (php-fpm) freebsd
server {
# Listen on port 81
listen 81;
# Server name being used (exact name, wildcards or regular expression)
# server_name phpmyadmin.my;
root /usr/local/www/phpMyAdmin;