$RANDOMFPA = "./fpa.txt";
srand((double)microtime()*1000000);
if (file_exists($RANDOMFPA)) {
$arry_txt = preg_split("/--NEXT--/", join('', file($RANDOMFPA)));
$fpa = $arry_txt[rand(0, sizeof($arry_txt) -1)];
include('$fpa');
} else {
echo "Error: can't open $RANDOMFPA file";
}
so i have this, can i want to to display a random full page ad based on a list in a text file. but all it does is print "include('$fpa');" on the page in the spot i want the fpa to be. can anybody correct this and make it work ? thanks !@@$$@#