As I said, I don't know.

----- Original Message ----- 
From: "Andrew Gaffney" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 11, 2003 8:55 PM
Subject: Re: hit counter


> Wouldn't these have the same effect?
>
> Octavian Rasnita wrote:
> > I don't know, but this is not the right way.
> >
> > You need to open each image in perl with open(), read the content of the
> > file, then print each content one after another.
> >
> > ----- Original Message ----- 
> > From: "Andrew Gaffney" <[EMAIL PROTECTED]>
> >
> >>So, if I were to do 'cat 1.gif 2.gif 3.gif 4.gif > 1234.gif' at the
> >
> > command line, I'd get
> >
> >>a GIF that displays '1234' if each of the original file contains a
number?
> >>
> >>Octavian Rasnita wrote:
> >>
> >>>Open each image file and print their content one after another and they
> >
> > will
> >
> >>>be printed right.
> >>>Don't forget to use the right HTTP header for printing an image
> >
> > (image/gif).
> >
> >>>And don't forget to open the files using binmode if you are under
> >
> > Windows.
> >
> >>>But your program will be totally useless for the blind visitors that
> >
> > won't
> >
> >>>be able to read that image on the screen.
> >>>A better idea would be to use server side includes and print a text hit
> >>>counter, or use Javascript to include the text generated by a CGI
script
> >
> > if
> >
> >>>your server doesn't accept SSI.
> >>>
> >>>Teddy
> >>>
> >>>
> >>>----- Original Message ----- 
> >>>From: "Andrew Gaffney" <[EMAIL PROTECTED]>
> >>>To: "Jon Barnhardt" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> >>>Sent: Tuesday, November 11, 2003 7:58 PM
> >>>Subject: Re: hit counter
> >>>
> >>>
> >>>
> >>>
> >>>>That will work, but I'd like to combine them into one image if
possible.
> >>>>
> >>>>Jon Barnhardt wrote:
> >>>>
> >>>>
> >>>>>name your gifs 1.gif, 2.gif 3.gif 4.gif, etc
> >>>>>
> >>>>>once you have your number stored in a variable (hit count), split it
> >>>
> >>>into an array then loop through the array and append the .gif to the
> >
> > number
> >
> >>>and write the path to page as an image source.
> >>>
> >>>
> >>>>>Logic:
> >>>>>
> >>>>>myvariable = 12536    <-- hit count amount
> >>>>>myarray = myvariable split by number
> >>>>>for i = 0 to end of array
> >>>>>"<img src>" & myarray(i) & ".gif</img src>"
> >>>>>next
> >>>>>
> >>>
> >>>
> >>
> >>-- 
> >>Andrew Gaffney
> >>
> >>
> >>-- 
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
>
> -- 
> Andrew Gaffney
>
>
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to