You are here: Parsing XML in php4 « PHP Programming Language « IT news, forums, messages
Parsing XML in php4

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация