[Update: 2005-06-12] The bug was fixed. RandIMG is now usable again for PHP4 users. This random image generator has been reoptimised recently and it came to me that it would be a smart thing to ...
[Update: 2005-06-12] The bug was fixed. RandIMG is now usable again for PHP4 users. This random image generator has been reoptimised recently and it came to me that it would be a smart thing to do to put it on some scripting sites. Currently version 1.0.2, it supports GIF, JPG and PNG, which can be expanded to include any extension (even EXE, SWF or TIF!). If checking MIME types provides better code, I will change the code. The script automatically seperates all image files from the otheres, then returns a random image. New in 1.2.1 is a directory check to see if the user has actually set the directory. Works with any PHP version which supports directory opening and reading. There is a PHP5 check included for those using PHP4.x and below. Usage: (In an image tag in HTML) < img src="randimg.php&quo t; >
Version 1.3.0 Platform Windows ,FreeBSD ,Mac OSX ,Sun ,Linux