Does anyone know of a script that can call random php or html files and display them with in another document using something like an include() function? A similar example of what I am talking about is Matt's Random Image Script. In this script one can display a random image by placing the script in the same directory as the images and then pointing to it with the following html:
Code:
<img src="/dropbox/2003/rotate/rotate.php" alt="A Random Image" />
Code:
<?php include("header.php"); ?>
<?php include("randomstring.php"); ?>
<?php include("footer.php"); ?>
Where randomstring.php is the script that displays random code strings. Does anyone know of a script like this? or know of how i could write one?