i need a way to include lines of php code from a txt file into a page and execute them.
(simple if ($date == $date) say NEW effect!)
it works fine if i use include() for the whole file.
but i need the file in an array so i can sort() it etc....and the php wont execute with echo?
so how can i execute php from an file if in array?
as i cant use arrays with include().
does that make sense?...probably not!!!
J
my code....
<?
$file = "./blabla.txt";
$f = file($file);
sort($f);
$count = count($f);
for ($i=0; $i<$count; $i++){
echo"$f[$i]";
}
?>