|
|
|
Re: Synchronize Forum To An RSS Feed [message #158565 is a reply to message #158548] |
Tue, 03 March 2009 21:51 |
littleking
Messages: 187 Registered: January 2007
Karma: 2
|
Senior Member |
|
|
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /homepages/35/d196178364/htdocs/huntohio/import.php on line 50
when i use that
45 foreach (array_reverse($arrFeeds) as $node) {
46 $m->poster_id = $uid;
47 $m->ip_addr = '0.0.0.0';
48 $m->reply_to = 0;
49 $m->thread_id = 0;
50 $m->subject = $node->getElementsByTagName('title')->item(0)->nodeValue;
51 $m->body = $node->getElementsByTagName('description')->item(0)->nodeValue;
52
53 echo "Loading article: ". $m->subject ."\n";
54 if ( isset($node->getElementsByTagName('pubDate')->item(0)->nodeValue)) {
55 $date = $node->getElementsByTagName('pubDate')->item(0)->nodeValue;
56 }
57 if ( isset($node->getElementsByTagName('date')->item(0)->nodeValue)) {
58 $date = $node->getElementsByTagName('date')->item(0)->nodeValue;
[Updated on: Wed, 04 March 2009 11:27] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|