Jump to content

Converting this to php is giving me parse errors.


Heath

Recommended Posts

I am working on converting my rss feed to suit the truveo video sitemap needs but I am getting a error.

 

For those who would like to help, or develop their own, the directions can be found here

http://developer.truveo.com/DirectorDocumentation.php

 

This is their sample rss document....

 

A sample Media RSS file is shown below. Required tags are in red.

 

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" 
                   xmlns:av="http://www.searchvideo.com/schemas/av/1.0">
  <channel>
   <title>Metacafe</title>
   <link>http://www.metacafe.com/rss/today_videos/mrss.xml</link>
    <description>Today's Videos, Movies and  Funny Clips by Metacafe</description>
    <item>
      <author>mooncat56</author>
      <title>Making Of 300-The Movie</media:title>
      <link>http://www.metacafe.com/watch/504132/making_of_300_the_movie/</link>
      <description>Actors work and train as ONE in the fight scenes. Six weeks of training to learn the moves 
  devised for this movie. </description>
      <guid isPermaLink="true">http://www.metacafe.com/watch/504132/making_of_300_the_movie/</guid>
      <pubDate>Tue, 17 Apr 2007 02:50:07 +0000</pubDate>
      <media:description>Actors work and train as ONE in the fight scenes. Six weeks of 
  training to learn the moves devised for this movie.</media:description>
      <media:content url="http://www.metacafe.com/fplayer/504132/making_of_300_the_movie.swf" 
  type="application/x-shockwave-flash" medium="video" height="345" width="400" duration="243" />
      <media:player url="http://www.metacafe.com/watch/504132/making_of_300_the_movie/" />
      <media:thumbnail url="http://images.metacafe.com/thumb/504132/3445872/4/rss_feed5/0/
  making_of_300_the_movie.jpg" width="120" height="90" />
      <media:title>Making Of 300-The Movie</media:title>
      <media:keywords>spartans,300,fight</media:keywords>
      <media:credit>mooncat56</media:credit>
      <media:rating scheme="urn:simple">nonadult</media:rating>
      <media:category>Entertainment</media:category>
      </item>
</channel>
</rss>

 

Here is the line that is giving me a bit of a issue.

 

 <media:player url="http://www.metacafe.com/watch/504132/making_of_300_the_movie/" />

 

Here is how I have it in my php...

 <media:player url=\"http://www.metacafe.com/watch/504132/making_of_300_the_movie/"\ />

 

any thing I am doing wrong?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.