FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP XML Parsing





themit
Hi,
Had a script using DOM for PHP to parse a series of RSS feeds and synchronize them with a database. However, I recently became aware that the server I am hosting with uses PHP 4. Does anyone have some ideas on how to rewrite the code below to make it compatible with PHP 4?
Code:

 $objDOM = new DOMDocument();
  $objDOM->load($userow['url']); //make sure path is correct


  $note = $objDOM->getElementsByTagName("channel");
  // for each note tag, parse the document and get values for
  // tasks and details tag.

  foreach( $note as $value )
  {
    $titles = $value->getElementsByTagName("title");
    $title=$titles->item(0)->nodeValue;
  }

Your help is appreciated.
kv
I haven't worked with php xml dom, but this link might help you http://bytes.com/forum/thread524572.html
themit
Thanks for that, looks like it will work and have some good outcomes for my site.
Related topics
web tech tutorials(asp, php, xml, sql, svg ...)
PHP - BBcode Parsing
Should I make a flash site?
Help making an AJAX messaging system
RSS Help PLease
php and am lost...
Can't download files after a Firefox auto update
ASPX XML parsing error help
rss 2.0 feeds
PHP RSS Parsing
XML parsing
Parse feed tags/urls using rss2html
php and xml
xml parsing
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.