firstcliq Posted October 29, 2010 Share Posted October 29, 2010 I have a script that is going to be on several urls. There is a master site that will have certain information that will need to be present on all urls that host this script. I am planning on using RSS to do this. What is a good method to dynamically create the xml file for the master site so that the feed can be broadcast to the other urls? Thanks in advance for the input. Quote Link to comment https://forums.phpfreaks.com/topic/217225-include-from-different-url/ Share on other sites More sharing options...
Ninjakreborn Posted October 29, 2010 Share Posted October 29, 2010 I would need more information to help thoroughly but the basic steps required are below: 1. Get your data together. Whether it's from Mysql, Flat File, or Excel. Get this into a PHP array or other form of structure that can be looped through. 2. Loop through it and build a string, which will be your XML. 3. Pass it to the browsers with XML headers, which will prompt for download. Reference Material http://articles.techrepublic.com.com/5100-10878_11-5035149.html http://www.devshed.com/c/a/PHP/Building-XML-Trees-With-PHP/ http://www.ibm.com/developerworks/library/os-xmldomphp/ http://www.justskins.com/forums/php-can-php-build-28972.html http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_22675819.html http://www.google.com/#hl=en&expIds=25639,25657,25982,26637,27060,27182,27284&sugexp=ldymls&xhr=t&q=php%2C+build+XML+file+from&cp=24&qe=cGhwLCBidWlsZCBYTUwgZmlsZSBmcm9t&qesig=-FELrSd129YVn52LjbqZDg&pkc=AFgZ2tkG5XEVpN0Jl8jVCdpoP8xnRQ6mghJ5B8IurVOuIDthIy42n2cHzrtOdSWkYcKCT_w02Uo78m25UgN2XJ1B9DZI-Lh83w&pf=p&sclient=psy&aq=f&aqi=&aql=&oq=php%2C+build+XML+file+from&gs_rfai=&pbx=1&fp=ddfbf15c2e2f4021 Quote Link to comment https://forums.phpfreaks.com/topic/217225-include-from-different-url/#findComment-1128161 Share on other sites More sharing options...
firstcliq Posted October 30, 2010 Author Share Posted October 30, 2010 Thanks for the information. I am working on it now. Quote Link to comment https://forums.phpfreaks.com/topic/217225-include-from-different-url/#findComment-1128369 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.