aboutsummaryrefslogtreecommitdiffstats
path: root/BSF/include/php_compat/file_put_contents.php
blob: 679d9c984f455a555b7f1b2fe6726edc54067234 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
//php 5
function file_put_contents($filename, $data)
{
  $fp = fopen($filename, 'w');
  if ($fp)
  {
    $ret = fwrite($fp, $data);
    fclose($fp);
    return $ret;
  }
  return false;
}
?>