Menu
hi now i know why this doesnt work
$handle = @fopen(“users.txt”, “a”);
if(!$handle)
{die(“Error opening file to writing”);}
fwrite($handle, “,'”.$username.”‘”);
fclose($handle);
but when i try to escape the ,’ or the ‘ it doesnt work what am i doing wrong could someone show me the correct way to get this working?
this is the error i get, i presume its becuase they are unescaped, Parse error: parse error, expecting `‘,” or
Thanks
Rich