You said, in your first post:
i want to fetch & store the contents of that table into a file.
The code below will get the output of a remote page, parse out the table, and store the table in a local file:
$remote_url = 'http://example.com/page.php';
$local_file = 'whatever.txt';
$ch = curl_init($remote_url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$str = curl_exec($ch);
curl_close($ch);
$table_start = strpos($str, '<table>');
$table_end = strpos($str, '</table>') + strlen('</table>');
$table_len = $table_end - $table_start;
$table = substr($str, $table_start, $table_len);
$fp = fopen($local_file, 'w');
fwrite($fp, $table);
fclose($fp);
This assumes that the table you want is the only or first one on the page and that there are no other complicating factors. Otherwise you'll have to do some more serious parsing.
Edit: I didn't notice that you cross-posted this. If I had I wouldn't have replied.