Hey, I've been playing around with the Twitter api and I would need one more thing, that no tutorial covers ..
Here si the code that I use to pick up data:
$curlhandle = curl_init();
curl_setopt($curlhandle, CURLOPT_URL, "http://twitter.com/statuses/user_timeline.xml");
curl_setopt($curlhandle, CURLOPT_USERPWD, $username.':'.$password);
curl_setopt($curlhandle, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curlhandle);
curl_close($curlhandle);
$xmlobj = new SimpleXMLElement($response);
Now can I use that somehow to check, if the $username and $password are valid?
To more explain what I need it for .. I'll have a form, where the user can type in his login and I need to be able to tell him, if the inserted data is in/valid login.