You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 67 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Retrieving News from a non RSS/RDF site/file [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Ct85711
Nuke Soldier
Nuke Soldier


Joined: Jul 09, 2003
Posts: 13


PostPosted: Wed Jul 09, 2003 11:45 am Reply with quoteBack to top

Hello,

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
Find all posts by Ct85711View user's profileSend private messageSend e-mail
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Wed Jul 09, 2003 12:51 pm Reply with quoteBack to top

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 */

echo $parsedContent;
?>

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Ct85711
Nuke Soldier
Nuke Soldier


Joined: Jul 09, 2003
Posts: 13


PostPosted: Wed Jul 09, 2003 4:46 pm Reply with quoteBack to top

ok, thank you for a speedy responce. I figured I was going have to make a parser.
Find all posts by Ct85711View user's profileSend private messageSend e-mail
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.178 Seconds - 224 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::