Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. $dir = "images/";
  2. $images = scandir($dir);
  3. $i = rand(2, sizeof($images)-1);
  4. ?>
  5.  
  6. <img src="images/<?php echo $images[$i]; ?>" alt="" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement