[twitter-dev] Re: Is twitter a fad or worth development efforts?
First, Why you are here??? For me, i'm trying to develop with twitter api for fun and learning. Now i know more about php that a month ago. I'm doing this with the hope of doing a best site that twitter, giving more options to cuztomize to the user and new services (and the hope of winning some money). "You're asking the wrong folks. Most of the developers here do not have any real capital investment in their projects to speak of. Fewer still have a profit model. " - Kevin Mesiab > Is twitter a fad or worth development efforts?
[twitter-dev] Re: Website!
Start with simple code. I'm using php and the "Rest Api" from twitter. At the moment i can put my "friends_timeline" on a php page and compare username and passwords to make a login. see ya!! (era mas para presumir que para ayudar jeje) chepe263
[twitter-dev] Re: error with simple xml load file
Hello, i have a question, How use it with xml api format??? See, i'm using the http://twitter.com/statuses/friends_timeline.xml to get the friends timeline for my app but i don't know how use it the data with SimpleXML Please help!! chepe263 On Jul 27, 10:23 pm, jmathai wrote: > JDG is probably correct. > > $ch = curl_init('http://search.twitter.com/search.atom?q=Google'); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > $result = curl_exec($ch); > $sXml = simplexml_load_string($result); > var_dump($sXml); > > On Jul 27, 4:45 pm, oscarva wrote: > > > Please help :( > > > On 25 jul, 01:05, oscarva wrote: > > > > I am tring to do a Api call using simple xml and twitter search API. > > > > $rss = simplexml_load_file('http://search.twitter.com/search.atom? > > > q=Google'); > > > foreach ($rss->channel->item as $item){ > > > $title = utf8_decode($item->title); > > > $url = $item->link; > > > > } > > > > The error log tells me the following: > > > > PHP Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load > > > external entity "http://search.twitter.com/search.atom? > > > q=Google" in /home/xxx/public_html/test/status.php on line 10 > > > [error] [client 166.210.xxx.xxx] PHP Warning: simplexml_load_file > > > (http://search.twitter.com/search.atom?q=Google) [ > > href='function.simplexml-load-file'>function.simplexml-load-file]: > > > failed to open stream: Connection timed out in /home/xxx/public_html/ > > > test/status.php on line 10 > > > > PHP Version 5.2.8 > > > > This only happens on my server, since in local working properly. :( > > > > Please Help. Thaks ;)
[twitter-dev] Re: using Twitter API with PHP
Listen, the first place to start is the twitter api documentation. At the beginning i didn't understant the api but when i read a lot about cURL and twitter api on the net everything got sense. What i really recomend is understand the SimpleXML in php. Helps a lot with xml format api. I hope this can be useful chepe263 On Aug 23, 2:45 pm, Termanater13 wrote: > Ive been looking to use the Twitter API with my php Site and I cant > find much just a bunch of URLs used wuth the Twitter API and the curl > commands used with the API. Can someone point me in the direction of > where to start, and please nothing done by the comunity unless its a > tutorial on how to write my own if at al possible.