Hello, I am new to PHP and I am writeing information to a text file. In the text file I have to have a quote for the log, so in the log file I have to have a single ". I cannot get this to work. I get errors when I use "\ because it looks somthing like this ""\". When I use this I get an error with fputs. Can someone help me out.
Thanks
<?
$filename ="c:\zzzz.txt";
$myFile= fopen($filename,'a+');
if(! $myFile){
print ("File could not be opened.");
exit;
}
$string = "\""
fputs($myFile, $string);
fclose($myFile);
?>