Re: [PHP] How can I fetch a table from html file using php?

2001-09-26 Thread Sheridan Saint-Michel

You just need a simple Regex.  This should do it

http://demo.ina-finland.fi/sample.html","r";);
$buffer = fread ($fp, 100);

preg_match("|]*ruudukko[^>]*>.+|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]




[PHP] How can I fetch a table from html file using php?

2001-09-26 Thread Sami Kyösti

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]