bigal
10-15-2003, 10:18 AM
If you are fimilar with THESETHESE (http://www.danasoft.com) (danasoft sigs) the ones that tell your your IP and have a rotating quote on them, well a friend told me the script:
Here's how to do it.
A. Create a .htaccess
put "RedirectMatch (.*)\.jpg$ http://yourhost.com/yoursig.php" (without quotes)
* just note, you should create a folder and put everything in it or it will replace every jpg file. I couldn't get the yoursig.jpg thing to work... but you may have more luck... depends on the host
B. Create a php file.
enter this
<?php
Header("Content-type: image/jpeg");
Header("Expires: Mon, 1, 1999 05:00:00 GMT");
Header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
Header("Cache-Control: no-store, no-cache, must-revalidate");
Header("Cache-Control: post-check=0, pre-check=0", false);
Header("Pragma: no-cache");
$im = imagecreatefromjpeg("your-sig-pic.jpg");
$mycolor = imagecolorclosest($im, 0, 0, 0);
$word = "Hello!";
imagestring($im, 2, 90, 13, $word, $mycolor);
Imagejpeg($im,'',90);
ImageDestroy($im);
?>
C. Create a jpeg file
And voila! Replace $word with anything you want and change, 90, 13 to whatever you want to change their location (x, and then y)
It woks as well, you request the jpg file, and it gives you it ith whatever the $word value is. But i was wondering if anyone knew how i could make it display a RANDOM quote!
Any Help greatfully receaved!
Also this may not work on Pay Hosts!
Here's how to do it.
A. Create a .htaccess
put "RedirectMatch (.*)\.jpg$ http://yourhost.com/yoursig.php" (without quotes)
* just note, you should create a folder and put everything in it or it will replace every jpg file. I couldn't get the yoursig.jpg thing to work... but you may have more luck... depends on the host
B. Create a php file.
enter this
<?php
Header("Content-type: image/jpeg");
Header("Expires: Mon, 1, 1999 05:00:00 GMT");
Header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
Header("Cache-Control: no-store, no-cache, must-revalidate");
Header("Cache-Control: post-check=0, pre-check=0", false);
Header("Pragma: no-cache");
$im = imagecreatefromjpeg("your-sig-pic.jpg");
$mycolor = imagecolorclosest($im, 0, 0, 0);
$word = "Hello!";
imagestring($im, 2, 90, 13, $word, $mycolor);
Imagejpeg($im,'',90);
ImageDestroy($im);
?>
C. Create a jpeg file
And voila! Replace $word with anything you want and change, 90, 13 to whatever you want to change their location (x, and then y)
It woks as well, you request the jpg file, and it gives you it ith whatever the $word value is. But i was wondering if anyone knew how i could make it display a RANDOM quote!
Any Help greatfully receaved!
Also this may not work on Pay Hosts!