this is my code:
$eng[0]['url'] = "http://xxxx.com/refgg?host=$host&domain=$domain&type=$type";
$eng[0]['reg'] = "/<HR>(.*)<HR>/i";
$urls = array();
$out = array();
regullar expressions
foreach($eng as $c)
{
$text1 = join("",file($c['url']));
#$text1 = htmlspecialchars($text1);
$text1 = ereg_replace("\n","",$text1);
preg_match_all($c['reg'],$text1,$matches);
$num = count($matches[0]);
for($x=0; $x<$num; $x++)
{
$tabela_t1 = strip_tags($matches[1][$x]);
$out["$url"][tabela_t1] = $tabela_t1;
}
}
end regullar expressions
echo "<br><br>\n";
while(list($url,$rec) = each($out))
{
extract($rec);
echo "$tabela_t1";
}
as you see, it's really really simple. and i did this a lot of times before, but now 🙁.
and this is the table i want to get:
...
</center>
<HR><TABLE CELLSPACING=0 CELLPADDING=0>
<TR><TD NOWRAP COLSPAN=4></TD></TR>
<TR><TD NOWRAP COLSPAN=4>;; ANSWERS:</TD></TR>
<TR><TD NOWRAP><A HREF="/cgi-bin/regg?host=&type=NS&domain=inet.ba.">xxx.ba.</A></TD>
</TABLE>
<hr><center>
...
as you see, it si between two <HR>s. and i still can't retrieve it. have any ideas?
this code above is functioning, but i can't retrieve the html code of the page. instead of all table, i get just get the text (no hyperlinx, no TD or TD ... --- nothing).
any ideas???
thanks
P.