Skip to content

Instantly share code, notes, and snippets.

View CodeNegar's full-sized avatar

CodeNegar CodeNegar

View GitHub Profile
@CodeNegar
CodeNegar / gist:3698235
Created September 11, 2012 12:54
php: get and save remote file
<?php
/*
Get and save remote file PHP script
http://egza.org/
*/
error_reporting(E_ALL);
if(!isset($_GET['url'])){
die("url parameter is required.");
}