PHP – Write to File

April 22nd, 2009 at 6:36 pm by Rick
1
2
3
4
5
function writeFile($data, $path, $targetname){
    $fp = fopen($path.'/'.$targetname, "w", 0);
    fputs($fp, $data);
    fclose($fp);
}

Comments are closed.