curl-and-php
Re: cURL problem, nothing appear in the page
Date: Tue, 1 Jan 2008 17:38:30 -0600 (CST)
On Sat, December 22, 2007 9:50 pm, Douglas Fonseca wrote:
> Please, I need help!
> I installed cURL library for php5 on my Ubuntu Linux. Everything looks
> OK.
> When I open phpinfo() page the cURL is listed as installed and OK:
> curl cURL support enabled cURL Information libcurl/7.15.5
> OpenSSL/0.9.8c
> zlib/1.2.3 libidn/0.6.5
> But, when I do a page using cURL like:
>
> <?php
> $url = "http://www.google.com";
> $ch = curl_init();
if (!$ch) die("NO CURL HANDLE?!");
> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
> curl_setopt($ch, CURLOPT_URL, $url);
> $result = curl_exec($ch);
> curl_close($ch);
> echo $result;
> ?>
>
> it does'nt work! When I open my Browser and try to apen the page, the
> page
> opens, but with nothing in it!! Completely emply. No errors, no google
> page,
> no contents. Nothing!
> Please, with someone could help me, thank you!!
-- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2008-01-02