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?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.