-
-
Save pix-art/ab3d74e431c6127a9c2fae16c7f3ecda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function writeFile($fullpath, $content) | |
{ | |
if (!is_writable($fullpath)) { | |
return false; | |
} | |
if (!$fp = fopen($fullpath,'w')) { | |
return false; | |
} | |
if (!fwrite($fp,$content)) { | |
return false; | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
optimized