Jump to content

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


cyfer65
 Share

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.

Edited by Synook
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...