Before curl_close($ch);

If curl_getinfo($ci, CURLINFO_HTTP_CODE) === 200 then the status was deleted
sucessfully. If === to 404 then the status did not exist.

You can read more about HTTP response codes
http://apiwiki.twitter.com/HTTP-Response-Codes-and-Errors

Abraham

On Fri, Dec 4, 2009 at 03:57, nite21 <shanebond1...@gmail.com> wrote:

> hi shiplu
> i made changes in this
> i changed $id to $uid
>
> $ch = curl_init('http://twitter.com/statuses/destroy/' . $uid .
> '.xml');
>
> now my delete is working
> but it shows the whole xml on deletion and if the same id deleted
> again it shows
> me No status found with that id xml
>
> but i wanted when it is sucess it shd show message Status deleted
> and if same id deleted twice it shd show No status found with that id
>
>
>


-- 
Abraham Williams | Community Evangelist | http://web608.org
Project | Intersect | http://intersect.labs.poseurtech.com
Hacker | http://abrah.am | http://twitter.com/abraham
This email is: [ ] shareable [x] ask first [ ] private.
Sent from Madison, WI, United States

Reply via email to