View Single Post
Old 02-02-2007, 02:10 PM  
Naughty
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: Utopia
Posts: 6,483
Quote:
Originally Posted by mikeyddddd View Post
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);
__________________
seks.ai for sale - ping me
Naughty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote