Code: Select all
andCode: Select all
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi,
can anybody help me to fetch data from a html table to a text file using php.
I have tried that code:Code: Select all
while ( ! feof( $fpr ) )
{
$str .=fgets( $fpr);
}
$do = preg_match_all("/<td>(.*)<\/td>/", $str, $matches,PREG_PATTERN_ORDER);
foreach($matches as $key=>$val)
{
foreach($val as $v1)
{
echo ($v1)."<br>";
}
}feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]