Page 1 of 1

regarding curl concept --help me

Posted: Mon Oct 04, 2004 12:19 am
by ykirankumar
feyd | Please use

Code: Select all

tags when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]


hi,
    I am trying to get the information from the URL.for that i used the concept of CURL.
 This is working perfectly.But at the end of the output I am getting '0'
can u help me any one,i want to remove this Zero '0' at the end of the output, how to solve this problem..
i have done the following coding...as...

Code: Select all

$ch = curl_init();
        curl_setopt ($ch, CURLOPT_URL,"http://192.168.0.1/serv/ex1.php?keyvalue=$strapp&mobileno=$mobileno");
        curl_setopt ($ch, CURLOPT_HEADER,0);
        curl_exec ($ch);
        curl_close ($ch);

feyd | Please use

Code: Select all

tags when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]

Posted: Mon Oct 04, 2004 1:59 am
by feyd
is this all the code you are using?

Posted: Mon Oct 04, 2004 3:39 am
by Weirdan
add

Code: Select all

curl_setopt($ch, CURLOPT_VERBOSE, true);
to see what's going on behind the curtain.