source: trunk/include/php_compat/file_put_contents.php @ 4956

Last change on this file since 4956 was 3282, checked in by plg, 16 years ago

change: according to topic:15067, svn:keywords property was removed

  • Property svn:eol-style set to LF
File size: 196 bytes
Line 
1<?php
2//php 5
3function file_put_contents($filename, $data)
4{
5  $fp = fopen($filename, 'w');
6  if ($fp)
7  {
8    $ret = fwrite($fp, $data);
9    fclose($fp);
10    return $ret;
11  }
12  return false;
13}
14?>
Note: See TracBrowser for help on using the repository browser.