Tom, le 11/09/2014 à 12:26
Fonction de stockage de variables php dans un fichier :
function store($file,$datas){file_put_contents($file,gzdeflate(json_encode($datas)));}
function unstore($file){return json_decode(gzinflate(file_get_contents($file)),true);}
(
Permalink)