Re: [PHP] Parsing Content
On Tuesday 05 Mar 2002 15:07, Erik Price wrote: On Monday, March 4, 2002, at 06:10 PM, Jonathan Duncan wrote: I want to make a web site that displays news headlines from my favorite news sites. PEAR has an RSS headline class that's dead easy to use and works for RDF files. Incidentally, does anyone know any good sites with RDF headlines? I've already got slashdot, newsforge and theregister. I'm looking for a few more good sites. Cheers, --jaa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parsing Content
On Monday, March 4, 2002, at 06:10 PM, Jonathan Duncan wrote: I want to make a web site that displays news headlines from my favorite news sites. The way that you're thinking of doing it (parsing via regexes from other site's HTML) is the Long Way Around. Why not do it the way the pros do it? This topic is a current front page headline at Developer Shed (www.devshed.com). Here is the link to the tutorial on this very topic: http://www.devshed.com/Server_Side/PHP/PHPRDF/page1.html You get to teach yourself a bit about XML along the way. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parsing Content
That is perfect, thank you Philip and Erik. I forgot what a great resource DevShed is. Thanks again, Jonathan Duncan Erik Price [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]; On Monday, March 4, 2002, at 06:10 PM, Jonathan Duncan wrote: I want to make a web site that displays news headlines from my favorite news sites. The way that you're thinking of doing it (parsing via regexes from other site's HTML) is the Long Way Around. Why not do it the way the pros do it? This topic is a current front page headline at Developer Shed (www.devshed.com). Here is the link to the tutorial on this very topic: http://www.devshed.com/Server_Side/PHP/PHPRDF/page1.html You get to teach yourself a bit about XML along the way. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parsing Content
On Tuesday, March 5, 2002, at 04:00 PM, Jonathan Duncan wrote: That is perfect, thank you Philip and Erik. I forgot what a great resource DevShed is. It's awesome. Not very in-depth, but then I'd buy a book on the subject if I wanted in-depth. Just enough so that you can get a grasp of how something works and maybe try it out. Good luck with your RDF stuff, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Parsing Content
I want to make a web site that displays news headlines from my favorite news sites So the theory is that I fopen their web page, fread the contents of the page, look for the sections that have the news headlines (with regex I assume) and their href link information, paste that into an include file and call it when my page loads Sounds simple enough right? The part I don't yet know how to do is the part where I parse the web page that I have read from the news site So what I think I need to know is how to pinpoint the section with the headline links in it, take only those links and their text and paste them into a new file This project may be bigger than a bread box, so any ideas or pointers to resources that could help me learn how to do this would much appreciated Thank you, Jonathan Duncan -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp