Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help With CURL

Status
Not open for further replies.

colep

Programmer
Jul 18, 2002
58
US
I am new to using Curl. I am using it to call in a page off of a secure site because the include function doesn't support https. It is working fine except it is returning a 0 and displaying it on the screen. I don't know how to get rid of it!!!! If anyone knows how to get this from displaying please share!!!!!

Thanks,
Cole ;)
 
Let's see your code.

Also, take a look at my FAQ in this forum: faq434-2502
______________________________________________________________________
TANSTAAFL!
 
Ok, here's the code where it's calling in the page...

$ch = curl_init();

curl_setopt ($ch, CURLOPT_URL, "$path/elements/menu.php");
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, "auth_code=$auth_code&path=$path");
curl_exec ($ch);

curl_close ($ch);
 
I think my FAQ will help you a lot. ______________________________________________________________________
TANSTAAFL!
 
Thanks for your help... I pretty much had the same thing you did, but evidently I was missing something!!! Thanks again!

Cole ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top