Liam Morgan Posted March 18, 2004 Share Posted March 18, 2004 Just wondering how these signatures work. They say.. Your IP is: xx.xx.xx.xx etc. but they seem to be images Liam Link to comment Share on other sites More sharing options...
sven Posted March 18, 2004 Share Posted March 18, 2004 you have an image create php code. it puts text over a specified image. this is one of mine that shows which itunes song is playing.<?phpHeader ('Content-type: image/png');Header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');Header('Expires: Thu, 19 Nov 1990 08:52:00 GMT');Header('Pragma: no-cache');// create the image$nameofimage = "now-playing.jpg"; //name of image$image = imagecreatefromjpeg($nameofimage);// set the colours$cool = imagecolorallocate($image, 87, 87, 87);$black = imagecolorallocate($image, 0, 0, 0);$white = imagecolorallocate($image, 255, 255, 255);$red = imagecolorallocate($image, 255, 0, 0);$grey = imagecolorallocate($image, 204, 204, 204);$green = imagecolorallocate($image, 206, 129, 18);$blue = imagecolorallocate($image, 0, 0, 255);// set iTunes file (or other information)$fname = "CurrentSong.txt";$songfile = fopen($fname, "r");$artist = fgets($songfile);if($artist != " ") {$songname = fgets($songfile);$song = "Playing: $songname by $artist";}else$song = "No music is playing";fclose($songfile);// set the font$font = '/font.ttf';// put it all together//puts text on the image, see bellow about variablesImageTTFText ($image, 8, 0, 9, 20, $white, $font, $song); // output and destroyimagepng($image);imagedestroy($image);?>imageTTFTextcompleted script example Link to comment Share on other sites More sharing options...
Liam Morgan Posted March 19, 2004 Author Share Posted March 19, 2004 oh right . Thanks Liam Link to comment Share on other sites More sharing options...
darph Posted March 19, 2004 Share Posted March 19, 2004 thx i just wonder my self many times how does it work so longdarph Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now