Moderators note: Please place new text below original text. ----- Original Message ----- From: Gordon Stewart To: [email protected] Sent: Thursday, January 24, 2008 4:49 AM Subject: [php-list] Question re fopen & null characters
Hi, BACKGROUND I have this as a common routine :- $handle = fopen($file, "a"); fwrite($handle, "$logreport\n"); fclose($handle); (different scripts / values) Basically to ADD text to the ends of various log reports.... PROBLEM Sometims, when I use FTP to bring these log reports to my PC, & open them (textpad), see (occasionaly), chunks of text/data missing - But replaced by a long "line" of black squares... When I highlight ths line & try & "copy" it -it says I cannot copy the line/text - because it contains "null characters".. QUESTION :- Is this a fault of the script ? Or something else ? -- -------------------- I have also seen this. It doesn't happen everytime.
