Im a little rusty with php, but I am trying to do a very simple xml retrieval from a blogger forum so i can feed it into a flash movie.
I installed the zend framework, but am having a hell of a time trying to find working code examples. just snippets at the blogger api site that don't explain them very well to a hack programmer like myself.
heres the code i have so far:
i think im close, but i cannot figure out how to return the results that I get from the gdata query:
<?
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_Query');
$gdClient = new Zend_Gdata();
function printAllPosts($gdClient)
{
$query = new Zend_Gdata_Query('http://www.sajencorona.blogspot.com/atom.xml');
$feed = $gdClient->getFeed($query);
$xml = new SimpleXMLElement($feed);
echo $xml->asXML();
}
printAllPosts($gdClient)
?>
any help would be greatly appreciated.
What I'm trying to do is a total hack - use my php server to call blogspot api and call the resulting xml from a flash movie on the html server, but my client's site is strictly html, no active server support of any kind. it sucks!!!
I cant wait till google starts creating flash api's...