hit counter

2003-11-11 Thread Andrew Gaffney
I want to write a CGI in perl that when called, grabs a number from a MySQL db or a file, increments it, writes the number back out, and then returns a GIF with that number. I want to have 10 separate GIFs, each one containing an image (that I have created to match the site design) of a number,

Re: Syntax error with while

2003-11-11 Thread herve.suvigny
Le lun 10/11/2003 à 18:55, drieux a écrit : Hello, > On Sunday, Nov 9, 2003, at 17:59 US/Pacific, A L wrote: > [..] > > Thank you but I prefere do it by myself, to understand what I am doing, > > the target is to improve myself in Perl CGI > [..] > > not a problem. I put forward the Foobar packa

Re: hit counter

2003-11-11 Thread Andrew Gaffney
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 th

RE: hit counter

2003-11-11 Thread Jon Barnhardt
sorry about that, using a custom utility to check this account. Didn't realize it was not replying to all! :-) Jon -Original Message- From: Andrew Gaffney [mailto:[EMAIL PROTECTED] Sent: Tue 11/11/2003 1:00 PM To: Jon Barnhardt Cc: S

unsuscribe me from your list

2003-11-11 Thread David Kapp

Re: hit counter

2003-11-11 Thread Octavian Rasnita
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 bl

Re: hit counter

2003-11-11 Thread Andrew Gaffney
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

Re: hit counter

2003-11-11 Thread Octavian Rasnita
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]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 11, 2003

Re:Hit counter

2003-11-11 Thread parvez mohamed
Plaese use http://www.scriptarchive.com/readme/counter.html#counter in responce to: I want to write a CGI in perl that when called, grabs a number from a MySQL db or a file, increments it, writes the number back out, and then returns a GIF with that number. I want to have 10 separate GIFs,

REMOTE_USER

2003-11-11 Thread Colin Johnstone
Gidday All, We are running AIX on an IBM HTTP server with IHS. We are serving static HTML pages. Some of these pages are to be protected. I assume I place the restricted pages in a particular directory and then protect that directory. Once authenticated a user should be able to view protecte

Re: hit counter

2003-11-11 Thread Andrew Gaffney
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 PROTECTE