We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Dynamic images; how are they done?!?!?
Topic Started: Apr 16 2005, 10:49 AM (304 Views)
solinent
Member
[ *  *  * ]
well I cant' figure out how to make a dynamic image, only a dynamic table that has alot of html code in it :S. How is text actualy put into the image, because this is supposed to go into a signature, so that it displays peopleses stats and when their stats change, then the image changes.

Eg. I go to the game RuneScape, then my stats increase. The image that shows the stats will also increase.

What I know: How to retrieve their stats via file() (in php) and return it as TEXT.

What I need to know: how to return it as part of an image.
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
You use the gd library functions.

http://us2.php.net/gd
Offline Profile Quote Post Goto Top
 
Jeremy
Member Avatar
Member
[ *  *  *  *  *  * ]
Here's something I've been wanting to know (mainly because I haven't bothered to try it myself) ...

If you .htaccess and change the mime-types of files to read certain extensions as PHP (since InvisionFree won't let you use .php as image extensions), if you have PHP return just text (HTML maybe) instead of an actual image, will it show up on the forums? :unsure:
Offline Profile Quote Post Goto Top
 
solinent
Member
[ *  *  * ]
tyvm! I have no idea about what Jeremy is talking about though cause im pretty stupid when it comes to PHP lol :no: but what I would do if I wanted to return it as text, would just put the image as a background of a table, then alter the table cells...but I dunno if you could create an image file with that. TYVM! YOU DONT KNOW HOW MUCH YOU HAVE HELPED ME LOL!
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
Jeremy, I have an .htaccess set up on http://status.sethkinast.com that parses JPG as PHP. Works fine in my sig on IPBs.
Offline Profile Quote Post Goto Top
 
Jeremy
Member Avatar
Member
[ *  *  *  *  *  * ]
I meant if you have the script itself return text instead of an image, would the text show up?
Offline Profile Quote Post Goto Top
 
solinent
Member
[ *  *  * ]
I very much doubt it..Why don't you test it out?
Offline Profile Quote Post Goto Top
 
2 users reading this topic (2 Guests and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply