Users Viewing This Thread
 1 Guest(s)
amatorbalikci.net

Post Reply  Post Thread 
Random page script?
Author Message
smacker
Member
***


Posts: 234
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0

Country:
Post: #1
Random page script?

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:

PHP Code:
<img src="/dropbox/2003/rotate/rotate.php" alt="A Random Image" /> 


What I am looking for though is a script that can act the same way but instead of images displays strings of code randomly. For example I might include the code:

PHP Code:
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?

09-14-2007 07:27 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: