regarding curl concept --help me

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ykirankumar
Forum Newbie
Posts: 1
Joined: Mon Oct 04, 2004 12:03 am
Location: bangalore
Contact:

regarding curl concept --help me

Post 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]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

is this all the code you are using?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

add

Code: Select all

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