11-03-2008, 07:15 PM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Feb 2008
Posts: 6
Thanks: 2
|
PHP XML thumb
I am having problem with xml and php, well i am trying to display the thumbnail from xml file. The xml file has following line.
Code:
<media:thumbnail width="66" height="49" url="link of the page"/>
well i can get the title and link but not able to get the image. I have tried various way but still no good result.
Code:
$xml = new SimpleXMLElement("url of file");
//loop to repeat
$img = $xml->channel->item[$i]['media:thumbnail']
;
But still the image wont display.Could somebody help me out.
|
|
|
|