Jump to content

Extract data fro web page


wll6568

Recommended Posts

Hi all,

 

Can someone tell me how to extract a portion of HTML codes from an existing web page? I tried to extract a table from a downloaded web page but cant get no luck:

 

$fh = fopen($url, "r");

while(!feof($fh)){

    $download = htmlspecialchars(fgets($fh, 902400)) . "<br />";

    //$outputvalue = EXTRACT A TABLE FROM $download;

}

echo($outputvalue);

Link to comment
https://forums.phpfreaks.com/topic/49936-extract-data-fro-web-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.