Stotty Posted May 3, 2009 Share Posted May 3, 2009 Right ive got my website And im trying to add news of another website eg Runescape.com there latest news so on my website in the code i would put <div class=""newsTitle""> But it needs to open runescape first so it knows to get divclass from runescape.com Anyone help ? Quote Link to comment https://forums.phpfreaks.com/topic/156637-opening-2-websites/ Share on other sites More sharing options...
Ken2k7 Posted May 3, 2009 Share Posted May 3, 2009 Huh? What do you mean to get the div class from runescape.com? Quote Link to comment https://forums.phpfreaks.com/topic/156637-opening-2-websites/#findComment-825001 Share on other sites More sharing options...
the182guy Posted May 4, 2009 Share Posted May 4, 2009 If you want to put someone else content on your page then you're going to have to look into "screen scraping", or they might have an RSS feed for the content, which you can use - would easier than screen scraping. Quote Link to comment https://forums.phpfreaks.com/topic/156637-opening-2-websites/#findComment-825593 Share on other sites More sharing options...
Letterbomb05 Posted May 4, 2009 Share Posted May 4, 2009 What your looking to do is to parse the news from http://www.runescape.com to display it on your website. For this you need PHP; not HTML. I assume you at least know the basics of PHP since your on PHPFreaks.com already. Quote Link to comment https://forums.phpfreaks.com/topic/156637-opening-2-websites/#findComment-825681 Share on other sites More sharing options...
Ken2k7 Posted May 4, 2009 Share Posted May 4, 2009 I guess you can always put the site in a frame and have that news section be displayed by setting a fixed height and width and putting the page at the right scrollHeight. Pretty dumb though. Quote Link to comment https://forums.phpfreaks.com/topic/156637-opening-2-websites/#findComment-825727 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.