strlen($return);

is this really working, use strlen() to count binary data?

regards

anru

On 19 December 2010 22:00, Jochen Daum <[email protected]> wrote:
> On 19 December 2010 21:44, Mike Cochrane <[email protected]> wrote:
>>
>> Hi Jochen,
>>
>> On 19/12/10 20:08, Jochen Daum wrote:
>>>
>>> $x = fwrite($fh, strlen($return));
>>
>> should be
>> $x = fwrite($fh, $return, strlen($return));
>>
>> If you were in fact already doing that, then it beats me. Only difference
>> is I normally do "wb" instead of "w+b". The already suggested
>> file_put_contents is probably the better solution anyway.
>
>
> Hmprff, LOL.
> Thanks for finding this.
> Jochen
>
> --
> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> To post, send email to [email protected]
> To unsubscribe, send email to
> [email protected]

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to