/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function write($path, $content, $mode="w+"){ if (file_exists($path) && !is_writeable($path)){ return false; } if ($fp = fopen($path, $mode)){ fwrite($fp, $content); fclose($fp); } else { return false; } return true; }
URL: http://www.jonasjohn.de/snippets/php/write.htm
Comments
