That should smack a random image from the directory on the page. The two important parameters are the GD library level and the maximum width. If your server isn't using GD version 2 (hmmm, possible but unlikely) you'll need to change this parameter to gd=1 (instead of 2). The other thing to remember is to change the maxw parameter to a reasonable number, maybe try 160 to begin. Once you get this working, you might want folks to be able to click on the image that brings them to the full gallery (or whatever you'd like). Something like this might be helpful/useful:
<a href="mygallery.html"><img src="images/list/selection/randomimage.php?gd=2&src=images/list/selection/&maxw=160" alt="A random image from my gallery"></a><br><a href="mygallery.html">My Gallery</a>
If I have mis-understood let me know. Sounds like index.php is in this directory named foto. If not you might need to change the path information to: foto/images/list/selection/
From your information (foto/
From your information (foto/ is your root directory), it would appear that you might call it this way:
<img SRC="images/list/selection/randomimage.php?gd=2&src=images/list/selection/&maxw=160">That should smack a random image from the directory on the page. The two important parameters are the GD library level and the maximum width. If your server isn't using GD version 2 (hmmm, possible but unlikely) you'll need to change this parameter to gd=1 (instead of 2). The other thing to remember is to change the maxw parameter to a reasonable number, maybe try 160 to begin. Once you get this working, you might want folks to be able to click on the image that brings them to the full gallery (or whatever you'd like). Something like this might be helpful/useful:
<a href="mygallery.html"><img src="images/list/selection/randomimage.php?gd=2&src=images/list/selection/&maxw=160" alt="A random image from my gallery"></a><br><a href="mygallery.html">My Gallery</a>If I have mis-understood let me know. Sounds like index.php is in this directory named foto. If not you might need to change the path information to: foto/images/list/selection/