Jump to content

Parse HTML Page


RightNow21

Recommended Posts

Any one know how to parse an external html page?

I know how to parse a html file on my server.

<?php
$filename = "test.html";
$file = fopen($filename, "r");
$filesize = filesize($filename);
$text = fread($file, $filesize);
fclose($file);
echo $text;
?>

But how would I parse:
someone-else.com/filename.html
Link to comment
https://forums.phpfreaks.com/topic/17660-parse-html-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.