Jump to content

PHP statistic in image


g9m29

Recommended Posts

Ok. Let's have that situation:

I've got a guests, users, and admins counter ( how many are online at current moment ). And I'd like to save that information in image and then put it in my profile ( for example ), and the information in image I'd like to be self-reloaded ( When the statistic is changing, I'd like to change by it self in image )...... ok, There are images in many profiles that show u ur IP, that's I wanna make :? ( something like that )

Well there is a couple issues with that concept..

 

1) You would need to somehow take the information generated from your query and convert this to an image of sorts.  This is not impossible, just requires some skill with ImageMagick.  I suggest reading up at http://us2.php.net/imagick and just go a search on Google for ImageMagick as you'll see a lot of tutorials.

 

2) The more perplexing information is that you said you want this information to keep updating.  Well depending on how often you want this to update each time you update would require you to run the query again and rebuild the image again.  This could become very server intense quickly.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.