we usually take all niggas garments

Group: Leone Family Mafia
Joined: Dec 8, 2001


|
| CODE | <? header("Content-type: image/png"); list(,$song) = explode("\n", file_get_contents("http://ws.audioscrobbler.com/txt/recent/Jack_Knife")); $fontnum = 3; $fontwidth = imagefontwidth($fontnum); $fontheight = imagefontheight($fontnum); $string = $song; $img = imagecreate(strlen($string)*$fontwidth, $fontheight); $white = imagecolorallocate($img, 0, 0, 0); $black = imagecolorallocate($img, 255, 255, 255); $trans = imagecolortransparent($img, $white); imagefill($img, 0, 0, $white); imagestring($img, $fontnum, 0, 0, $string, $black); imagepng($img); imagedestroy($img); ?> |
That's the code for my 'now playing' image in my sig. To get the news from your site, you'd need to do a similar thing, just change the url in there, and parse the code to find the string you want within that.
|