Welcome Guest, Not a member yet? Register   Sign In
fetching xml files
#1

[eluser]scatterscatter[/eluser]
Hello,

I'm trying to fetch an XML file from another server and insert it into an array accordingly. I've tried using load->view and a custom library 'my_view' posted on this forum but no dice.

Thanks

p.s. Newcomer to both PHP and CI.
#2

[eluser]gtech[/eluser]
maybee this link might be usefull

[url="http://www.php-mysql-tutorial.com/php-tutorial/php-read-remote-file.php"]http://www.php-mysql-tutorial.com/php-tutorial/php-read-remote-file.php[/url]

and then this one

[url="http://uk.php.net/manual/en/function.xml-parse-into-struct.php"]http://uk.php.net/manual/en/function.xml-parse-into-struct.php[/url]
#3

[eluser]scatterscatter[/eluser]
I've stumbled onto a CI library which supposedly parses XML

http://codeigniter.com/wiki/Xml_Library/

but I couldn't get it to display anything. Can anyone confirm if it works? (before I dust the keyboard Tongue)

Thanks again.
#4

[eluser]Prasad.P[/eluser]
Check this post

http://ellislab.com/forums/viewthread/82036/

In that the function loads a .xml file which is created outside ci structure directories, to make it short i created that forum folder in the place where i have the system folder of CI.
You can create the file in any directory structure, just that you have to give the correct path to load with domdocument load function.




Theme © iAndrew 2016 - Forum software by © MyBB