Zepo. Posted October 20, 2007 Share Posted October 20, 2007 Which is the best way to fetch news from my server and display it on other sites. I have an admincp i would like to display announcements in from my site. Maybe just some how remotly including a file from my server or something. Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/ Share on other sites More sharing options...
Ninjakreborn Posted October 20, 2007 Share Posted October 20, 2007 Depends on what you want to do. Are you meaning to grab data from an external site and display there new's. Then again it depends on what format there data is coming in. Explain a little more detailed about what you are trying to do. Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374246 Share on other sites More sharing options...
Zepo. Posted October 20, 2007 Author Share Posted October 20, 2007 Say i want to include a file from my server with just html data into anouther server. Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374248 Share on other sites More sharing options...
Ninjakreborn Posted October 20, 2007 Share Posted October 20, 2007 Then just open the file, get it's contents, and display it on the page. Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374249 Share on other sites More sharing options...
Zepo. Posted October 20, 2007 Author Share Posted October 20, 2007 On a different server? I want to include a file on my server onto anouther server. Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374254 Share on other sites More sharing options...
Ninjakreborn Posted October 20, 2007 Share Posted October 20, 2007 Oh, you have to have access to there server in order to do that. Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374256 Share on other sites More sharing options...
Zepo. Posted October 20, 2007 Author Share Posted October 20, 2007 Ok you dont get it. Im going to be releasing something soon, and i want to display news from my site in their script. I just want whst im making to include that file from my server. Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374263 Share on other sites More sharing options...
Ninjakreborn Posted October 20, 2007 Share Posted October 20, 2007 Can you rephrase that one more time. Something about what you are saying is not coming through to me.It sounds like you want to send data "to" there script to show something on there site? Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374268 Share on other sites More sharing options...
Zepo. Posted October 20, 2007 Author Share Posted October 20, 2007 Yes like vbulliten has in their admincp with the news. Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374271 Share on other sites More sharing options...
MadTechie Posted October 20, 2007 Share Posted October 20, 2007 Ok.. first your need "Remote Include" all servers that are going to use your script, GoodLuck with that.. (unlikly to happen).. if its a news feed then surely they can include the URL in a iframe or something.. Why did you plan on using an included file ? EDIT: with a news feed for version you could have the URL have a link like newsfeed.php?ver=1.2 Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374274 Share on other sites More sharing options...
Ninjakreborn Posted October 20, 2007 Share Posted October 20, 2007 ah, there script would have to have some way to recieve what you are saying. IF there script was prepared it would be as simple as sending post/get data to tehre website for there script to pickup and utilize. Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374275 Share on other sites More sharing options...
Zepo. Posted October 20, 2007 Author Share Posted October 20, 2007 Ok.. first your need "Remote Include" all servers that are going to use your script, GoodLuck with that.. (unlikly to happen).. if its a news feed then surely they can include the URL in a iframe or something.. Why did you plan on using an included file ? EDIT: with a news feed for version you could have the URL have a link like newsfeed.php?ver=1.2 Well an Iframe would look crappy, because its all iframed already. But if theres someway i could iframe it to where it stretches with more content that would work. if that possible? Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374279 Share on other sites More sharing options...
MadTechie Posted October 20, 2007 Share Posted October 20, 2007 you mean resize the iframe!.. yes you can do that.. to be trueful.. your not gong to be the one in control of the look and feel.. in the end its down to the end user.. you could generate a XML file and supplie a XML parase and formatter. theirs probably 101 ways to do this but with knowing what your aiming for its kinda hard to say.. if the problem is "it looks crappy" then change the CSS to make it look good Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374294 Share on other sites More sharing options...
Zepo. Posted October 20, 2007 Author Share Posted October 20, 2007 Well i mean it would look stupid to have 4 iframes on a page......... Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374305 Share on other sites More sharing options...
MadTechie Posted October 20, 2007 Share Posted October 20, 2007 why would you have 4 neww feeds ? Quote Link to comment https://forums.phpfreaks.com/topic/74116-new-exporting-getting-news-from-different-server/#findComment-374330 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.