Look for:$handle = curl_init(); $ch is often used instead of $handle.
Make sure you add the curl_setopt() after the curl_init() and before the curl_exec(). Abraham On Tue, Sep 1, 2009 at 02:31, Praveena Sarathchandra <pravee...@gmail.com>wrote: > > yes.it is a curl. > what is $handle variable? > > thanks for your quick reply > > > On 9/1/09, Abraham Williams <4bra...@gmail.com> wrote: > > How is process() making the requests? Is it with CURL? > > If so you should be able make it work by adding: > > curl_setopt($handle, CURLOPT_POST, TRUE); > > > > Abraham > > > > On Mon, Aug 31, 2009 at 21:48, Pj <pravee...@gmail.com> wrote: > > > >> > >> How to Delete a Direct message in PHP > >> this is my script: > >> > >> function deleteDirectMessage($id) > >> { > >> if (!is_numeric($id)) { > >> return false; > >> } > >> $request = ' > >> http://twitter.com/direct_messages/destroy/'.$id.'.xml'; > >> > >> > >> return $this->process($request); > >> } > >> > >> I found out that the request must be passed as a HTTP request (POST / > >> DELETE) How to do this? > >> > >> thanks > >> > > > > > > > > -- > > Abraham Williams | Community Evangelist | http://web608.org > > Hacker | http://abrah.am | http://twitter.com/abraham > > Project | http://fireeagle.labs.poseurtech.com > > This email is: [ ] blogable [x] ask first [ ] private. > > Sent from Madison, WI, United States > > > > > -- > Best Regards, > > Praveena J. Sarathchandra > Freelance Web Designer/Developer > > [...@] pravee...@gmail.com > [M] +94-77-6275266 > [W] www.ideabox.lk > -- Abraham Williams | Community Evangelist | http://web608.org Hacker | http://abrah.am | http://twitter.com/abraham Project | http://fireeagle.labs.poseurtech.com This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, WI, United States