Thanks again, but now am getting:
Warning: Invalid argument supplied for foreach()
It looks correct to me, so I'm confused about the warning.
Thanks
Lorraine
On Fri, Oct 1, 2010 at 3:54 AM, Abraham Williams <4bra...@gmail.com> wrote:
> You don't need the cURL and XML code
Also wanted to mention that the original code is based on the tutorial here:
http://papermashup.com/using-the-twitter-api/
and the data is automatically inserted into a database.
Thanks,
Lorraine
Thank you so much, Abraham! I'm getting an error "String could not be parsed
> as XML&
weeters = new SimpleXMLElement($twi);
I then go on to grab data using
foreach ($tweeters->status as $twit1) {
etc.
Thanks again,
Lorraine
On Fri, Oct 1, 2010 at 2:13 AM, Abraham Williams <4bra...@gmail.com> wrote:
> Make sure you reset your consumer key on http://dev.twitter.com/ap
ters = new SimpleXMLElement($twi);
$latesttweets = count($tweeters);
... or am I completely off the mark?
Thanks very much :)
Lorraine
--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhanceme
y don't know
where to start. I assume I need to replace the $username and $password
bit with something like this:
require_once('twitteroauth.php');
$connection = new TwitterOAuth('app consumer key', 'app consumer
secret', 'my access token', 'my access token s
4bra...@gmail.com>wrote:
> Try using http://twitter.com/statuses/friends.xml instead.
>
>
> On Sun, May 17, 2009 at 13:38, Lorraine wrote:
>
>> Hope someone can help. I'm trying to generate a list of names and
>> screen_names of the people I'm following
Hope someone can help. I'm trying to generate a list of names and
screen_names of the people I'm following on Twitter. The problem is that it
just prints the name and screen_name of the user with the latest update...
over and over again. I'm a real newbie when it comes to PHP-- here's my
code:
htt