I have been searching around on getting an idea on how to do this, but can't find anything that will fully work. What I am needing to do, is retrieve some news from another site that isn't in a RSS/RDF format. To be more specific, that site doesn't use a standard database. Maybe someone has some experience with this site type, it uasing a Coranto web site system. Any help will be very helpful, I don't need to have source code, but tips on how to go about doing it.
Thanks
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Wed Jul 09, 2003 12:51 pm
You cannot read any kind of a database without permissions for access. So, the next best way is to read the HTML, parse it, extract the parts you want, and then reformat it for your web page. If you are running a pretty current version of PHP, then the easiest way is to do something like this
Code:
<?
$contentFromSomeSite = file_get_contents('http://newssite.com');
/** Here you write your parser code. The $contentFromSomeSite contains ALL of the raw HTML code that was used to display that page, just as if your had done a view source on the page. **/
/* Assume that the variable $parsedContent contains the final reformatted code that you want displayed */
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum