Buchead Posted January 27, 2009 Share Posted January 27, 2009 Hi all, Hopefully there isn't an obvious answer that I've completely missed. Been asked by boss to produce a page for out intranet site that pulls in an xml feed. All working ok. However he doesn't want the page written on the fly, and wants the outputted data hardcoded into the php. For some reason he can't see sense and wants to be able to view the page source and see all the data. So is it possible to grab the xml feed and pass it back into the php into an array which can be displayed? Thanks for any help, Clive. Quote Link to comment https://forums.phpfreaks.com/topic/142601-passing-js-aray-back-into-php/ Share on other sites More sharing options...
RichardRotterdam Posted January 27, 2009 Share Posted January 27, 2009 look into simpleXML using php Quote Link to comment https://forums.phpfreaks.com/topic/142601-passing-js-aray-back-into-php/#findComment-747470 Share on other sites More sharing options...
Buchead Posted January 27, 2009 Author Share Posted January 27, 2009 Cool. Thanks for that. Quote Link to comment https://forums.phpfreaks.com/topic/142601-passing-js-aray-back-into-php/#findComment-747475 Share on other sites More sharing options...
Buchead Posted January 27, 2009 Author Share Posted January 27, 2009 Unfortunately that doesn't work as using php version 4.4.6 - and they have no plans to upgrade to 5+. Any other suggestions please? Quote Link to comment https://forums.phpfreaks.com/topic/142601-passing-js-aray-back-into-php/#findComment-747669 Share on other sites More sharing options...
RichardRotterdam Posted January 27, 2009 Share Posted January 27, 2009 then you might want to look into dom xml http://nl2.php.net/manual/en/ref.domxml.php or you could search for a xml parser class or use regex Quote Link to comment https://forums.phpfreaks.com/topic/142601-passing-js-aray-back-into-php/#findComment-747877 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.