-
-
Save pix-art/235f769fc5eeef4d8c299960f8b1089d 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)) { | |
if ($fp = fopen($fullpath,'w')) { | |
if (fwrite($fp,$content)) { | |
// ... | |
} else { | |
return false; | |
} | |
} else { | |
return false; | |
} | |
} else { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment