Hi.
I'm using the temporal file to display some data and change the "<font>" tag.
But does not work.
I dont know if I'm doing the procedure correctly.
while ($value = mysql_fetch_row($results))
{
//here the validation, change the <font> tags.
$message = $value[3];
$tmp = tmpfile();
fputs($tmp, $message, strlen($message));
$out = "<font face="verdana, arial, helvetica, sans-serif" size="2" color=#ffffff>";
$in = "<font color=\"#CCCCCC\" class=\"verdanatex\">";
$news = "";
// get line by line
while (!feof ($tmp)){
$line = fgets ($tmp, 1024);
$line = str_replace ($in, $out, $line);
$news .= $line;
}
//until here the take off the tags
print $news
}
Thanks for help.
Best.