RightNow21
-
Posts
3 -
Joined
-
Last visited
Never
Posts posted by RightNow21
-
-
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 -
Use CSS to control the <div> the size, position, color etc.
Link the style sheet outsite and you page will be very clean for SEO too!
Parse HTML Page
in PHP Coding Help
Posted
Works like a charm.
http://www.darynduff.com/crawler/
<?php
$file = file_get_contents("http://www.google.com");
//$file = fopen($filename, "r");
//$filesize = filesize($file);
//$text = fread($file, $filesize);
//fclose($file);
echo $file;
?>