Skip to content

Instantly share code, notes, and snippets.

@pix-art pix-art/function.php Secret
Last active Apr 14, 2016

Embed
What would you like to do?
<?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
You can’t perform that action at this time.