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
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 .
> 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