Quote:
Originally Posted by mikeyddddd
|
Okay, for me this works fine now, i did some tweaking and i will contribute it here;-)
This will read any page and keep the caps if there are any.
Code:
$page=file_get_contents("abc.php");
$list = file("list.txt");
for($i=0; $i<count($list); $i++) {
$list[$i] = trim($list[$i]);
$data = explode("|", $list[$i]);
$page = preg_replace("/($data[0])/i", "<a href=\"$data[1]\" style=\"text-decoration:underline;\" title=\"Read more about $data[0]\">$1</a> ", $page);
}
print($page);