I suspect that you don't really want to cut out everything but the text
(since you plan to display it) but check out;
http://us2.php.net/manual/en/function.strip-tags.php
Now, keep in mind that since you are getting the source from the url, and
I'm guessing that the web server serving up the
What about using just the file command and then looping through the array?
I do this to scrape sites for content (pics, midi's, fonts) by getting the
links from within the html code and using the wwwcopy function in the php
docs.
I am sure there is a better way to do the pattern recognition but
Oops missed part of your question;
know what function to use to grab the page. for the string
http://us2.php.net/manual/en/function.fopen.php
There are some good samples on the page
$dh = fopen($url,'r');
$result = fread($dh,8192);
Hope
3 matches
Mail list logo