cURL help
Posted by: sik of it (---.airnet.net.nz)
Date: October 28, 2007 02:51AM

Hey I am trying to learn to play around with cURL and I have had no success at all. I have tried countless scripts and they all just return nothing at all???

Here is one example:

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "[www.example.com"]winking smiley;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
curl_close($ch);
echo $out

I have enabled the curl.dll by clicking on the wamp icon in the system tray then going php settings>php extensions>php_curl

I would really love any help you can offer!



Post Edited (10-28-07 03:38)

nOtEd!!!

Options: ReplyQuote
Re: cURL help
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: October 29, 2007 08:25PM

what error message(s) are you getting?


CyberSpatium
----------------------
WAMP English Forum Admin

I have WAMP5 working with (for development use only):
Windows Vista Ultimate x64 (64 bit)
Kaspersky Internet Security Suite 7.0.x
Spyware Terminater 2.x
CounterSpy 2.5.x


Need help? Check out my WAMP User Manual/Guide here!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Options: ReplyQuote
Re: cURL help
Posted by: fatbob (---.range81-157.btcentralplus.com)
Date: October 30, 2007 09:19AM

add to the top of your script.
error_reporting (E_ALL);

You have missed out a ; at the end of your echo line, it could be something as simple as that.

Options: ReplyQuote


Sorry, only registered users may post in this forum.