|
Posted by alkazakov on 09/30/24 11:39
I did the parsing XML and it works on my computer (PHP5), but as usual
it doesn't on the clients server (PHP4) =)
can you look into it:
http://sfhousemusic.com/newlook/phpinfo.php
http://sfhousemusic.com/newlook/pasingXML.php - test file with this in
it:
<?php
error_reporting(E_ALL);
$doc = DOMDocument::loadHTML("playlist.xml");
var_dump($doc);
$aSongID = array();
$aSongName = array();
$aSongPath = array();
$songs = $doc->getElementsByTagName("Song");
foreach($songs as $song){
array_push($aSongID, $song->getAttribute("ID"));
array_push($aSongName, $song->$song->nodeValue);
array_push($aSongPath, $song->getAttribute("URL"));
}
var_dump($aSongID);
?>
=(
it just displays the blank page with no errors, so i can't figure out
what is it.
help needed...
Thanks, Alexander =\
Navigation:
[Reply to this message]
|