Thanks for the idea. Though I'm not quite sure how it works, I'll look into it. Here's a (very small) snipet of what I've done so far:
copy ($pictures[0], "random".$randomimagenumber.".jpg");
echo "<img src = \"random".$randomimagenumber.".jpg\">";
what this does is copies one of the pictures from an array of pictures, and names it "random#.jpg". While the rest isn't really my concern, there is one part that is.....
It seems that when $picture[0] is the same picture as the "random.jpg" that it's trying to copy to, I get this error message:
Warning: copy(babe.jpg) [function.copy]: failed to create stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\Test Stuff\randomimage.php on line 82
I don't get this error as long as random#.jpg IS NOT THE SAME PICTURE as $picture[0].
How do I get rid of this error message? Why is this error message coming in the first place?