You just need a simple Regex.  This should do it

<?php
$fp = fopen("http://demo.ina-finland.fi/sample.html","r";);
$buffer = fread ($fp, 1000000);

preg_match("|<Table[^>]*ruudukko[^>]*>.+</Table>|is", $buffer, $regs );
  $table = $regs[0];
  echo $table;
?>

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


----- Original Message -----
From: "Sami Kyösti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 4:25 AM
Subject: [PHP] How can I fetch a table from html file using php?


> I have a sample file in http://demo.ina-finland.fi/sample.html and
> there's a table which is named "ruudukko".
>
> How can a just get that table in to my other html file using php?
>
> ThAnKs!
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to