Welcome to WebmasterWorld Guest from 54.145.166.247

Forum Moderators: bill & werty

Message Too Old, No Replies

Media Rss - Big Issues

   
3:02 pm on Dec 3, 2009 (gmt 0)

5+ Year Member



Hi

Getting this error
Parse error: syntax error, unexpected '<' in /
www.#*$!.com/rss/video_classifieds.xml (#*$! is site in signature)

Also no description or thumbnails is coming only the title
PLEASE HELP
Before this all done properly

Code
$sql_result=$videos_obj->recent_videos("limit 0,20");

$idz ="0";
$base_url="http://www.#*$!.com/video/play.php?id=";
$download_url="http://www.#*$!.com/video/video_files/";
$image_download="http://www.#*$!.com/video/video_files/";
for($i=0;$i<count($sql_result['id']);$i++)
{
/*
1. & - &amp;
2. < - &lt;
3. > - &gt;
4. " - &quot;
5. ' - '
*/
$description=htmlentities($sql_result['desc'][$i]);
]
<item>\r
<title>$sql_result['title'][$i]</title>\r
<description>$description</description>\r
<link>$base_url.$sql_result['id'][$i]</link>\r
<media:thumbnail url=\"$image_download" />\r
<guid isPermaLink=\"true\">". $download_url.$sql_result['vid_filename'][$i]."</guid>\r
<media:group>\r
");
fputs ($filepointer, "
<media:content url=\"$download_url\" fileSize=\"1000\" type=\"$<media:rating>nonadult</media:rating>
</media:content>
");
}
fputs ($filepointer, "
</media:group>
</item>\r
");
}
fputs ($filepointer, "</channel>
</rss>
");

12:44 am on Dec 4, 2009 (gmt 0)

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Is this supposed to be an RSS file?
3:41 am on Dec 4, 2009 (gmt 0)

5+ Year Member



Yes part of it media rss
8:32 am on Dec 4, 2009 (gmt 0)

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Where are you getting this error? Does the RSS file validate?
1:17 am on Feb 19, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Looks like a php file to me. Albeit one that doesn't parse.