in reply to Re: Re: Re: Hit Counter Using IMG Tag To Call Script
in thread Hit Counter Using IMG Tag To Call Script

Which won't work on Macs since \n == \r there, right? I think it has to be:

print "Content-length: 43\012\015\012\015";

-sam

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Hit Counter Using IMG Tag To Call Script
by tachyon (Chancellor) on May 13, 2002 at 00:54 UTC

    Actually that's a 500 on everything :o)

    printf "\\%#o\\%#o", map{ord}split'', "\r\n"; __DATA__ \015\012
    Line Ending Encodings
    Platform Line Ending   Octal Hex Unicode
    Apple Macintosh CR \r \015 0xD (#x000D)
    UNIX Based Systems LF \n \012 0xA (#x000A)
    DOS Based Systems CRLF \r\n \015\012 0xD0xA (#x000D)(#x000A)

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print