Code: $images = Array( Array("fname"=>"kait.png", "type"=>"png"), Array("fname"=>"sig2.png", "type"=>"png"), Array("fname"=>"idea12.png", "type"=>"png"), Array("fname"=>"idea2.png", "type"=>"png"), Array("fname"=>"barkait.jpg", "type"=>"jpg"), Array("fname"=>"kait.jpg", "type"=>"jpg") ); $im = $images[rand(0, count($images)-1)]; header ("Content-type: image/" . $im['type']); //output the bloody image directly $handle = fopen("./" . $im['fname'], "rb"); $contents = fread($handle, filesize("./" . $im['fname'])); fclose($handle); echo $contents; Die(); ?>
You can do it if .php is an acceptable extention for images in the forum you are visiting. Fortunatly i have enabled it here so you will be able to use random sig images
I used random image script for sigs. But I never used it here because I couldn't get it to work. Now it does. Hmmm odd.
There is an easier script if you save your pics a gifs. You don't have to edit in all the picture names. You just put them all in the same folder thus never having to edit in the extention. The downside to having a generator is finding a free php host.
1. Upload you sigs in a place that lets you have your own folder 2. Get the Random sig .php script 3. Upload it onto the folder 4. Use the RANDOM.php in you brackets. Its what im doing now. Refresh and it should bring up a new one!
ok, im lost, can someone tell me a place that i can have my own folder thingy, then Jeb, since u use it, can u tell us the easier script, and then can you tell me were do i put all that
here's the php file that I use for my sig http://www.illusiongfx.com/files/sigrotation.zip just put in a folder with a bunch of sigs and link to it. then let the rotating begin...
Tahts cool and new info for me, didnt know you could use PHP in an image, well I dont know much about PHP anywayz so...