When generating files using PHP, how do I write an include into a file, the following returns errors.
$reference = "<?include("threadc.php");?>Some details<br> \r\n "; $rp = fopen(basename($PHP_SELF).".reference","a"); fwrite ($rp,$reference);
you are getting errors because you havent escaped the quotes in the $reference string. you could also use ' quotes instead.
-paul http://xhawk.net