Dynadot โ€” .com Transfer

How to create dynamic, updating images?

Spaceship Spaceship
Watch

JsteRmX

Established Member
Impact
2
I was wondering how it is possible to create a .png image that is always updating, like the one below

banner_560x95.png


the player count and graph are always changing based on the live server stats. how is this done? I'd appreciate it if someone could point me in the right direction.

thanks =)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
im guessing it is done via ajax and php.

the ajax is used to get the data remotely, and then php image capabilities are used to for them actual image.
 
0
•••
I'm guessing its a mod in the forum of the site you joined - gametracker in this case.

If you want to provide such services then the answer above is correct.

Good Luck
 
0
•••
Well, if you do it via PHP you don't really need AJAX, though you may still use XML.

The easy way to do it is via AJAX, just get a standard image and load the data on top using CSS and AJAX.

But in this case it's the first option, PHP script grabbing server varibles (if you're doing it internally XML isn't really needed as only you will see the mess) and putting it on the image using PHP's GD functions.
 
0
•••
Using a dynamic php file that generates the image + mod_rewrite the file name to .png
 
0
•••
AzN said:
Using a dynamic php file that generates the image + mod_rewrite the file name to .png

You hit it on the point.

[Oh, and you need ImageMagick, of course]
 
0
•••
0
•••
great, thanks for all the responses! this seems to be beyond my current knowledge but I am now equipped to atleast start learning. yay =)
 
1
•••
Great weblord. Mostly these types of dynamic images are used in forum sugnatures.
I will try these tutorials pointed above.
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back