Posted By

DeluxiveState on 09/19/11


Tagged

php image wordpress random cms


Versions (?)

Random Image PHP


 / Published in: PHP
 

<?php> will random load images named (in this example) image1.jpg up to image5.jpg

  1. <img src="http://yourimage/image_<?php echo(rand(1,5)); ?>.jpg" />

Report this snippet  

You need to login to post a comment.