PHP with XML

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Kingo
Forum Contributor
Posts: 146
Joined: Thu Jun 03, 2004 9:38 am

PHP with XML

Post by Kingo »

hello
I'm new to PHP and would really appreciate if anyone could help me out with this.I would like to knoe if I can use PHP as front end and XML as back end. I mean I would lik eto store data into XML file and retrieve from the XML file to dispaly the results rather than MYSQL database. If any one could provide me with a sample, I would appreciate it.
Agian thanx very much for your help.
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

With php5 you can use SimpleXML. O'reilly ONLAMP has an excellent tutorial on how to use simplexml @ http://www.onlamp.com/pub/a/php/2004/01 ... lexml.html.

With php4 you can build your own parser functions; and here's a tutorial on how to do this: http://zend.com/zend/tut/tutbarlach.php.
Post Reply