Moderators note: Please write new text below original text.

On Jan 24, 2008 7:49 AM, Gordon Stewart <[EMAIL PROTECTED]> wrote:

>   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 ?
>
> ---------------------

hi,

i think that your problem is a fault of the script. Try to change the
charset encode, like this:

<php
header("*charset*='utf-8'");

Reply via email to