From kodeboard, 4 Years ago, written in PHP.
Embed
  1.     function file_put_contents($filename, $data) {
  2.         $f = @fopen($filename, 'w');
  3.         if (!$f) {
  4.             return false;
  5.         } else {
  6.             $bytes = fwrite($f, $data);
  7.             fclose($f);
  8.             return $bytes;
  9.         }
  10.     }
  11.  

You must login to reply or comment on this code.