Nquinlan_final_normaln_quinlan

http://twitter.com/n_quinlan

Preserve Your API Calls by Storing Previous Ones

<?php
if(isset($_GET['dcma'])){
	$file = file_get_contents("dcma/" . str_replace("/","-",$_GET['dcma']));
	if($file){
		echo $file;
	}else{
		$file = file_get_contents("http://" . $_GET['dcma']);
		file_put_contents("dcma/" . str_replace("/","-",$_GET['dcma']), $file);
		echo $file;
	}
}
?>
Reveal More
Added over 1 year ago
Post Code