aaPHPrandomImage, version 1.1.2 November 2002. This is a simple PHP script for displaying random images or flash movies. All you need to do is to upload all the files from the extracted package to your webserver. When you access the URL "demo.php" , you'd see that the script is working quite fine. That is all! In case you'd like to use your own pictures, and display them on your own page, please follow the following steps: 1)Place all your images and flash files( .swf ) in one directory( You should not put anything else in that directory other than images or flash movies). 2)You should edit the file "aaphprandomimage.php" following the instruction/comments at the top of the file "aaphprandomimage.php" 3)Insert the following PHP code in your page at the exact place where you want the random images to be displayed. 4)Upload all the files to your web server. That's all! Everything should be working fine.... As an example,see the "demo.php" file in the package. Please notice the traling "/" at the end of the directory name, it's mandatory. A demo version is at: http://www.menelic.com/phpzone/aaphprandomimage/ For any question or suggestion, please contact me at: arcadius@menelic.com Arcadius A. ======= FAQ ======= a) How can I call more than one random image on one page? To display more than one random image on a single page, please, do the following: a-1) Open the file "aaphprandomimage.php" in a text editor, at it's bottom, you will see a line containing the code , remove that line or comment it as shown below : a-2) Save you file and include it in you page, somewhere near the top of the page by using the code a-3) insert the following code in your PHP file wherever you want the random image to be shown(i.e. you can insert the code several times in the same file) : ( or ) and that's all !!!! ... Please, read on... b) If you want, you can set up several directories of files to shown randomly .... for instance let's say you have 4 directories of pictures: "flowers_dir/", "mens_dir/", "girls_dir/" and "cars_dir/" that you want to display randomly ... b-1) Firstly, follow the step a-1 and step a-2. b-2) * Where you want the random flowers to be shown, just insert the code * Where you want the random men's picture to be shown, just insert the following code: * do the same for girls and cars ..... but note that you should give a correct path for the directories C) I have been trying to get your script to work….. It seems the following code to insert the php does not work for me… Though I am able to view the random images if I browse to the file http://my_domain/aaphprandomimage.php If I insert the ‘include’ code into my html it does not show anything…. I have read others had this problem too…. A: you cannot include a php stript in a HTML page .... you neet to rename your page ".html" to ".php" The script can be included ONLY in PHP pages, not in HTML pages :-) Hope this helps ....