this is my code but nothing happens
<? $xfile = "x.txt" ; //heeft wel chmod 777
function write2file ($content) { global $xfile; $xpost = fopen($xfile ,"a"); $contents = ($content); fwrite($xpost, "$content"); fclose($xpost); } ?>
http://www.php.net/manual/en/function.fopen.php http://www.php.net/manual/en/function.fwrite.php http://www.php.net/manual/en/function.fclose.php
and the solution <? $contents = fopen("x.txt", "a"); fwrite($contents, "\r\n$content"); fclose($contents) ?>