0
noob posted
how to read xml easily in php
sample configuration.xml
...
<database>
<name>test</name>
<username>root</username>
<password>admin</password>
<host>localhost</host>
</database>
...
i made read xml code
$filename="configuration.xml";
$fp=fopen($filename);
$xmldata=fread($fp,filesize($filename));
fclose($fp);
$database_detail=$xmldata.explode("<name>");
echo $database_name=str_replace("</name>","",$database_detail[1]);
so its look very backward class work , and i think there should be more good way .