I want to randomize text/images in forum signatures like .... blach tryrty ooasdl dfgrtg doal faffak .... It calls a text file for text/images. In PHP and can be used with .htaccess All, I could find is http://robm.me.uk/articles/image-rotation-in-php http://informative.razababa.com/fv.php?c=2&/archives/Resources/Notes/0_PHP Ad Rotation.html I am no good with PHP. Could someone help me out a bit, thanks
This actually isn't that difficult. You will need gd library for my example First: .htaccess RewriteRule ^showfooter.jpg showfooter.php [nc] Code (markup): showfooter.php (that will work for random text) $image = imagecreatefrompng("barbg.png"); $black = imagecolorallocate($image, 255, 255, 255); srand(time()); $random = (rand()%9); $str = "Random Number: " . $random; imagestring($image,2, 5, 2, $str, $black); Header('Content-type: image/png'); imagepng($image); imagedestroy($image); Code (markup): this example, just takes an image and sets it as the "background" (barbg.png), and adds some random number text. This is a basic example, you will need to make the random function for the text part.