diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-02-27 02:22:19 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-02-27 02:22:19 +0000 |
commit | 01687607ec04f32ca03370456c112b64f66ca599 (patch) | |
tree | b668b024427a1cc9460dd13a3050c334dfa24109 /include/php_compat | |
parent | c3591e2629f84909f5872e4281c08f79926524d4 (diff) |
- added compatibility function file_put_contents
git-svn-id: http://piwigo.org/svn/trunk@2215 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/php_compat/file_put_contents.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/php_compat/file_put_contents.php b/include/php_compat/file_put_contents.php new file mode 100644 index 000000000..679d9c984 --- /dev/null +++ b/include/php_compat/file_put_contents.php @@ -0,0 +1,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; +} +?>
\ No newline at end of file |