Jump to content


Photo

dymnamic sig help


  • Please log in to reply
3 replies to this topic

#1 icydude

icydude
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 07 March 2006 - 03:54 AM

hey everyone,
I am not very good at php and have tried to create a dynamic sig.
I need to display this:
$days = floor((strtotime("now") - strtotime("2006-2-25")) / 86400);
echo abs($days);        

Now using the follwing how can i put that into this:
<?php
header("Content-type: image/png");
$image = imagecreatefrompng("ash.png");
$clr_black = imagecolorallocate($image, 0, 0, 0);


imagepng($image);
imagedestroy($image);
?> 


#2 Steveo31

Steveo31
  • Members
  • PipPip
  • Member
  • 25 posts
  • LocationSan Jose, CA

Posted 07 March 2006 - 06:19 AM

What exactly are you trying to do? From what the code puts out, looks like a countdown to Christmas in months, but whats the image?

#3 icydude

icydude
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 07 March 2006 - 11:10 PM

It outputs a number, ie today would be "11"

i want the 25x25 "ash.png" to show the number dynamicly.



#4 greycap

greycap
  • Members
  • PipPipPip
  • Advanced Member
  • 31 posts

Posted 08 March 2006 - 04:10 AM

[!--quoteo(post=352667:date=Mar 7 2006, 05:10 PM:name=icydude)--][div class=\'quotetop\']QUOTE(icydude @ Mar 7 2006, 05:10 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
It outputs a number, ie today would be "11"

i want the 25x25 "ash.png" to show the number dynamicly.
[/quote]

use imagestring()




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users