使用PHP和XML检索Twitter状态
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用PHP和XML检索Twitter状态相关的知识,希望对你有一定的参考价值。
This is the beginning of my retrieval of twitter status class...just something im playing with right now. It retrieves the xml, saves it on your server, then you can either use javascript or php to traverse the xml tree.
<?php class xmlmanager{ private $twitterXML; private $twitterURL = ""; //insert xml url here private $dom; function __construct(){ } function GetTwitterXML(){ return ; } function save_twitter_xml_as_file(){ $this->dom = new DOMDocument(); $this->dom->loadXML($this->twitterXML->asXML()); $this->dom->saveXML(); $this->dom->save('mytwitter.xml'); return ; } function __destruct(){ } } ?>
以上是关于使用PHP和XML检索Twitter状态的主要内容,如果未能解决你的问题,请参考以下文章