The code is simple, I'm trying to firstly, get includes to appear in my pages in a similar fashion, as well as a more adventurous random include piece. It should be quite simple, but it appears to not be working properly, and very tempramental.
The layout itself needs a little bit of work (just a bit of formatting, lol).
Anyway, there are a few files on the FTP that have been used as a test bed, but it's essentially my random includes that don't work, and example of which is below;
INDEX - All includes look like the one below...
<?php @include ("subnews.php"); ?>
DBLORE.PHP - One of the randoms that doesn't seem to work properly; selection only - it's quite long otherwise !
<? // include ('dblore.php'); // $dblore = array(); $dblore[0] = "<font face="Verdana" size="1">The original David Hunter 2 concept was a psychic featuring, sword wielding stealth-em-up"; $dblore[1] = "<font face="Verdana" size="1">David Hunter 2's original psychics were either Biomancers, Telepaths, Pyromancers or Telekinetics"; $dblore[2] = "<font face="Verdana" size="1">Death of a Hero was originally a one man effort to mod Delta Force. It failed."; $dblore[3] = "<font face="Verdana" size="1">Reactive Principle concepts originally features nearly 1000 different ship types"; $dblore[4] = "<font face="Verdana" size="1">At one point, a David Hunter style CCG was in the making. It might come back one day"; $dblore[5] = "<font face="Verdana" size="1">David Hunter features a customiseable CFG or Config file which allows players to customise more"; [i]...This keeps on going for sometime, and then this is banged on the end[/i] $count = count($dblore) - 1; $num = rand(32,$count); echo $dblore[$num]; ?>
So where's my mistake?