blueman378 Posted June 24, 2008 Share Posted June 24, 2008 hi guys, im building a script which will be shared among multiple users, so im adding a news section, i want this news section to be updated from our home site, this news section will contain patch info ect, so my question is which way is better, more likely to be supported by servers, and cleaner, 1) Rss feed, (can you read the info from a rss feed out like normal text?) 2) remote file inclusion 3) remote file get contents 4) remote database connection, (not to sure about this option as that would reveal our password and username to the end user) 5) any other options you could suggest? cheers matt Quote Link to comment https://forums.phpfreaks.com/topic/111664-best-way-to-add-data-remotly/ Share on other sites More sharing options...
trq Posted June 24, 2008 Share Posted June 24, 2008 Why not build a web interface for users to add there data? Quote Link to comment https://forums.phpfreaks.com/topic/111664-best-way-to-add-data-remotly/#findComment-573183 Share on other sites More sharing options...
blueman378 Posted June 24, 2008 Author Share Posted June 24, 2008 sorry, i msut not have explainede this very well, the user does not modify this data we(the creators) do, this is simply notices to the admins of the script (it is a shop) to let them know when a upgrade is available, or any important news, so we want one point on our site where we can modify the data and it will change on everywhere that is using the script. cheers, matt Quote Link to comment https://forums.phpfreaks.com/topic/111664-best-way-to-add-data-remotly/#findComment-573190 Share on other sites More sharing options...
trq Posted June 24, 2008 Share Posted June 24, 2008 So create a web interface, store your data in mysql and let each occurence of your script grab the data from there? Quote Link to comment https://forums.phpfreaks.com/topic/111664-best-way-to-add-data-remotly/#findComment-573210 Share on other sites More sharing options...
blueman378 Posted June 25, 2008 Author Share Posted June 25, 2008 yes that was one of the options but to do that i would have to store our mysql username and password in the script that they have a copy of Quote Link to comment https://forums.phpfreaks.com/topic/111664-best-way-to-add-data-remotly/#findComment-573722 Share on other sites More sharing options...
hitman6003 Posted June 25, 2008 Share Posted June 25, 2008 XML-RPC / REST / SOAP service(s)... Quote Link to comment https://forums.phpfreaks.com/topic/111664-best-way-to-add-data-remotly/#findComment-573728 Share on other sites More sharing options...
blueman378 Posted June 25, 2008 Author Share Posted June 25, 2008 sorry, those are protocols ive gathered that much, but what exactly do they do/ are used for? Quote Link to comment https://forums.phpfreaks.com/topic/111664-best-way-to-add-data-remotly/#findComment-573748 Share on other sites More sharing options...
hitman6003 Posted June 25, 2008 Share Posted June 25, 2008 They are three similar, but different, XML-over-HTTP based protocols that allow two servers to communicate. I recommend google to learn more... I like Zend Framework's classes for creating and consuming each service... http://framework.zend.com/manual/en/zend.rest.html http://framework.zend.com/manual/en/zend.xmlrpc.html Quote Link to comment https://forums.phpfreaks.com/topic/111664-best-way-to-add-data-remotly/#findComment-573751 Share on other sites More sharing options...
blueman378 Posted June 26, 2008 Author Share Posted June 26, 2008 hi there, sorry to be a pain, but ive been doing some researxh into xml over http and still dont really understand how to use it, can you please show me a example, lets say the page thats sending it is http://example.com/sending.php the recieving page is http://example2.com/recieving.php the content i want to send is: <hr> <strong>We have released patch 1.2.0.7.1</strong><br /> Please visit <a href="www.example.com/downloads.php"> Here</a> to dowload. <hr><hr> thanks alot guys Quote Link to comment https://forums.phpfreaks.com/topic/111664-best-way-to-add-data-remotly/#findComment-574985 Share on other sites More sharing options...
blueman378 Posted June 28, 2008 Author Share Posted June 28, 2008 bump?? Quote Link to comment https://forums.phpfreaks.com/topic/111664-best-way-to-add-data-remotly/#findComment-576595 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.