Jump to content

Php -> Output Text On An Image File..?


cyfer65

Recommended Posts

You know those avatars you see that have some kinda updated stats in them with text..aren't those done by using php or something..??Anyway, what I'd like to do is output the php code below onto a .PNG file if its possible ..??is there anyway to do something like this at all..??

<?phpdate_default_timezone_set('UTC');$Date = date('F-j-Y');echo "<h1 style='font-size:25px'><font color='red'>UPDATED - $Date</font></h1>";?>

Link to comment
Share on other sites

To get the extension as .png, you can (a) set up .png files to be parsed by PHP (bad idea), or (B) use mod_rewrite to rewrite the avatar.png file to a .php file.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...