"Floyd Resler" <fres...@adex-intl.com> wrote in message 
news:e6321b00-590d-4294-9b81-81cc92883...@adex-intl.com...

On Jul 12, 2010, at 2:52 PM, Gary wrote:

> I'm sure it is possible, but I am unsure how to do this.  I have created a
> Sale coupon that I was going to put up on a site that I manage, for 
> visitors
> to print out and bring to the store. The coupon is currently a .png, 
> however
> I was planning on converting to a pdf.  I would like to put on the coupon 
> a
> serial number that increases by 1 everytime the page is viewed. I dont
> really care if someone refreshes the page and skews the numbers.
>
> Is this possible and could someone give me some help?
>
> Thanks
>
> Gary
>

Is there any particular reason you need it to be a PDF?  If not and the GD 
library is installed in your PHP, I would suggest using the GD library to 
draw your serial number on the coupon.  As for keeping track of the counter 
I would do it either in a database table or save the number to file.

Take care,
Floyd


Floyd

Thanks for your reponse.

No real reason that the file has to be a pdf, that was my original plan 
before I came up with the counter idea..  I also thought it might not be as 
difficult to put the script on a pdf.

I have used the GD library in the past, so it is installed on the server, 
however I dont know how to apply to this situation..

After I posted the question, the thought came to me to simply create the 
coupon in html and include a simple counter, like a hit counter, but since I 
had the png already created, I was hoping there was a way to include the 
script on it instead of recreating in html/php.

Gary




__________ Information from ESET Smart Security, version of virus signature 
database 5273 (20100712) __________

The message was checked by ESET Smart Security.

http://www.eset.com





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to