Re: Creating Images (.GIF) with PHP from Text?
| From: | Chris Shiflett | Date: | Sun, 15 Sep 2002 03:40:44 +0000 |
| Subject: | Re: Creating Images (.GIF) with PHP from Text? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116415@lists.php.net to get a copy of this message | ||
I've never actually made a counter, so I'm not sure if this is good advice, but...
Wouldn't it be much easier to have ten static images of the digits 0-9? It seems much easier to simply display the appropriate digits corresponding to the number of hits. Your "Counter: " image could just be a separate image.
Yes, PHP can do all of this on the fly, but I'm not so sure that it's the best approach given what you're trying to accomplish here.
Happy hacking.
Chris
Jason Caldwell wrote:
Here's what I want to do; I have a counter (kinda) on my website.. and this counter appears in a certain font -- which most computer systems will not have on their systems. So -- I want my PHP script to take a variable value; say 34,000 and save that as a .GIF or .JPG with a Blue Background, and White OCR A Extended 12point non-aliased Font. With the word "Counter: " in-front of the value.