Results 1 to 3 of 3

 

Thread: Adding Images To Feeds

  1. #1
    Frostie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Wirral
    Posts
    3,217
    Thanks
    61
    Thanked 60 Times in 27 Posts


    I've a feed thats generated using PHP script thats working fine, however when I try to add an image via ShrinkTheWeb (webshot generator) to an <item></item>... well lets just say I'm getting nowhere and am getting out of my depth

    The code I'm using is
    Code:
    echo "<media:content url=/"http://images.shrinktheweb.com/xino.php?stwaccesskeyid=a6d3477afec91d8&stwembed=1&stwsize=lg&stwurl=".$r['company_url']."/" type=/"image/jpeg/" />\n";
    The error being generated is;
    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in feed.php

    Can anyone guru shed any light on it? I presume its something to do with the "s as I am using an echo to generate the actual thing.

    Thx

  2. #2
    csn
    csn's Avatar
    Small Affiliate :-)

    Status
    Offline
    Join Date
    Dec 2006
    Location
    Cardiff, UK
    Posts
    1,037
    Thanks
    67
    Thanked 43 Times in 36 Posts
    Slashes around the wrong way

    Tried and tested:

    PHP Code:
    <?php
    echo "<media:content url=\"http://images.shrinktheweb.com/xino.php?stwaccesskeyid=a6d3477afec91d8&stwembed=1&stwsize=lg&stwurl=".$r['company_url']."\" type=\"image/jpeg\" />\n";
    ?>

  3. The Following User Says Thank You to csn For This Useful Post:

    Frostie (18-02-11)

  4. #3
    Frostie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Wirral
    Posts
    3,217
    Thanks
    61
    Thanked 60 Times in 27 Posts
    How stupid of me!

    Thanks



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2