I'm trying to gett this script to output includes instead of text quotes, but nothing I try to put in an array will work. Is this at all possible?
The idea is to show a new include every time a visitor comes back to the site after reload. Do you know of any other scripts that would help me out or would this work?
<?php
$quotes[] = "I would rather this be a .php include";
$quotes[] = "I would rather this be a .php include 2";
$quotes[] = "I would rather this be a .php include 3";
srand ((double) microtime() * 1000000);
$randomquotes = rand(0,count($quotes)-1);
echo "" . $quotes[$randomquotes] . "";
?>
Thanks!