Hi,
I have a php file that reads a txt file and outputs it into neat tbales and formats the text nicely, it goes something like this,
<?
echo '<html>
<body bgcolor="#CCCCCC">
<table width="100%" cellpadding="5" cellspacing="0" bgcolor="#D0CFCA">
<tr>
<td align="left">
<strong>
<font size="1" face="Arial">';
PRINT "Infinity Designs news feed.";
echo '
</font>
</strong>
</td>
</tr>';
//set variables
$news = file("scripts/news.txt");
//make news
foreach($news as $mynews) {
$mynews = addslashes($mynews);
$title = strtok($mynews,"¶");
$date = strtok("¶");
$text = strtok("¶");
echo '<tr><td bgcolor="#E1E1DD"><font size="1" color="#4D7752" face="Arial"><b>';
PRINT "$title";
echo '</b></font><br><font size="1" face="Arial"><b>';
PRINT "$text";
echo '</b></font><br><font size="1" color="#4D7752" face="Arial">';
PRINT "$date";
echo'</font></td></tr><tr><td height="5" bgcolor="#D0CFCA" face="Arial"></td></tr>';
}
?>
What I was wondering is how can I get a link in the text file to work and go to a remote page like [url]http://www,phpbuilder.com[/url] or something. Whatever I try doesn't work, any help would be grately appreciated. Thanks