piwigo/include/php_compat/file_put_contents.php
rvelices 01687607ec - added compatibility function file_put_contents
git-svn-id: http://piwigo.org/svn/trunk@2215 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-02-27 02:22:19 +00:00

14 lines
No EOL
196 B
PHP

<?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;
}
?>