note 68528 deleted from ref.xml by bjori
| From: | bjori@php.net | Date: | Tue, 01 Aug 2006 09:01:59 +0000 |
| Subject: | note 68528 deleted from ref.xml by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115398@lists.php.net to get a copy of this message | ||
Note Submitter: seyacat at seyanim dot com
Reason: useless
----
I try to undestard XML pages and i cant.... see that huge codes i put mad and make parce by regex,
i think its easy
$file = file("http://example");
$docu = "";
foreach($file as $num => $line){
$docu .= $line;
}
preg_match_all("@
<dato>\s*
<id>([^>]*)</id>\s*
<telefono>([^>]*)</telefono>\s*
<mensaje>([^>]*)</mensaje>\s*
<fecha>([^>]*)</fecha>\s*
</dato>@Ux"
,$docu
,$datos);
print_r($datos);