I am trying to get a random picture script working.... I have used PHP before, but not recently... <?php $random = (rand()%3)+1; $handle = fopen("/Users/joetalerico/Sites/images/"&random".jpg", "wb"); ?> So what i have is a directory that has images numberd 1 -3 1.jpg, 2.jpg, 3.jpg.... I want to generate a number 1-3 and then take that string/int and put it into the path name to be opened. If i am doing this all wrong please dont write the code for me, just point me in the right direction. Thanks!