Reply to pls help...parsing xml

Your name:

Reply:


Posted by shotokan99 on 06/26/07 05:41

i have this situation:

i was given a query string : http://mywebservice.com?url=<xurl>
where
xurl=is a valid url. now what the query string does it will display
an
xml on the page. like this one:


<?xml version="1.0" encoding="UTF-8" ?>
<response...>
..
..
..
</response>

now i made a script that looks like this:
$xmyurl='http://myurl.com?xxxx=xxxx;
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$xmyurl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$xresult=curl_exec($ch);
curl_close($ch);

$xml = new SimpleXMLElement($xresult);
echo $xml->url[0]->localUrl;

when i tried to run, nothing is being displayed...what could have gone
wrong?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация