yah.... you cant do without it!
<?php
$logfile = "log.php";
$mycode = "?>\n\nhtml would go \"here\"\n\n<?";
$fp = fopen ("$logfile", "w");
fputs ($fp, $mycode);
fclose($fp);
?>
this code works.
if you want to insert html into a file using a PHP script, and if your HTML includes any quotes then you MUST (its not gay) replace it with ' \" ' for PHP to read the syntax properly.....
thanks
p.s. if you are using a text field to get the HTML in the first place than you might want to try to replace all " with \" on submit.....