Hi all, I am new for PHP and know some basic things. I want to read the data from XML file into PHP and save to MYSQL database. Is there any configuration needed in php.ini for to use XML file? Please help me.
Thanks in Advance,
Dhaya
<?php $s="<x><y>asdf</y><z>qwer</z></x>"; $x = new SimpleXMLElement($s); echo $x->z ; ?>
I believe that this works by default in PHP 5... but don't quote me on that. You may need to turn it on in php.ini.
http://www.php.net/SimpleXML