Simply place the first main php code into image.php then enter the last two code lines into a .htaccess file! Put images into the right directory, change the locations where needed and voila! The image will change every time you refresh. This is my first PHP snippet on Hawkee so please give constructive criticism!