mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-31 06:02:00 +01:00
- added compatibility function file_put_contents
git-svn-id: http://piwigo.org/svn/trunk@2215 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
1 parent
c3591e2629
commit
01687607ec
3 files changed
+16
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
?>
|
||||
Reference in new issue
Block a user