
argh.........DIC had a PHP error and now i get to retype my post

so here goes ::
the problem is right there in your PHP code:
CODE
<?
$splashcount = 3;
$fileprefix = "splash";
$filesuffix = ".html";
$myrandfile = rand(1, $splashcount);
$myfile = ($fileprefix . $myrandfile . $filesuffix);
if (@include ($myfile)) {
@include ($myfile);
} else {
print "<font face=\"Verdana\"><h2> Failure Processing Request </h2> /n/r<BR> <font size=1>Unable to include $myfile. </font>";
}
?>
you use "if(@include ($myfile))" to test if it can, right? well, if it can, it will. so you dont need to do it again in the "then" clause as you have done. ive tested this script that i made based off of your code

try it out
here to see. refresh the page a bunch and it works

here's the code i used:
CODE
<html>
<title>Random Splash Page</title>
<body>
<?
$splashcount = 3;
$fileprefix = "splash";
$filesuffix = ".html";
$myrandfile = rand(1, $splashcount);
$myfile = ($fileprefix . $myrandfile . $filesuffix);
if (@include ($myfile)) {
return true;
} else {
print "<font face=\"Verdana\"><h2> Failure Processing Request </h2> /n/r<BR> <font size=1>Unable to include $myfile. </font>";
}
?>
</body>
</html>
you can see the similarities, neh?

the HTML source for my splashes were simply "source1" or "source2" etc. thats it. no HTML markup, nothing

keeps it simple

if you DO need HTML markup (most people will haha) dont include <body> or <html> tags and the like. they will be on the index.php page for you (when you include the file). leave those out and you'll be fine

enjoi!
-pete

(if you have any questions etc, feel free to email or PM me!)