View Single Post
  #24  
Old 07-18-2008, 06:30 AM
 
zaa zaa is offline
 

X-Cart team
  
Join Date: Apr 2004
Location: Ulyanovsk, Russia
Posts: 125
 

Default Re: Syndicate X-Cart news as RSS 2.0 Channel

Quote:
Originally Posted by justy
For the news_feed.php, I'm getting these errors:

PHP Parse error: syntax error, unexpected T_SL in news_feed.php on line 62
PHP Parse error: syntax error, unexpected T_STRING in news_feed.php on line 64

They seem to happen at

Code:
$items_code .= <<<EX <item> <title>{$m['subject']}</title> <description><![CDATA[{$m['body']}]]></description> <link>$news_page_url</link> <guid isPermaLink="false">{$m['newsid']}@$news_page_url</guid> <pubDate>$pubDate</pubDate> </item> EX; }

Which is interesting, because Dreamweaver's syntax highlighting chokes on the <<<EX string as well.

Try to copy&paste text of provided script using, for example, notepad.
Apparently current editor mangles the file in some way.

PS. I've attached the news_feed.php script to this message, you can try to us it.
Attached Files
File Type: php news_feed.php (4.7 KB, 113 views)
Reply With Quote