On 20 December 2010 14:11, anru chen <[email protected]> wrote: > strlen($return); > > is this really working, use strlen() to count binary data? > > Yes, it does. Its just 1's and 0's literally.
Mike found the problem. P.S.: How to have good password security (for Everyone, Business Owners and Web Developers) http://post.ly/1L92U Kind Regards, Jochen Daum Chief Automation Officer Automatem Ltd Christmas Holidays: 23 Dec, 5pm - 3 Jan, 8am Phone: 09 630 3425 Mobile: 021 567 853 Email: [email protected] Skype: jochendaum Website: www.automatem.co.nz http://twitter.com/automatem http://nz.linkedin.com/in/automatem http://www.xing.com/go/invite/3425509.181107 http://www.aucklandbusinessnetworking.co.nz On 20 December 2010 14:11, anru chen <[email protected]> wrote: > 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]<nzphpug%[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]<nzphpug%[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]
