cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Problem with CURL and session_start()

From: Max Yahoo! <folken_max_at_yahoo.com.br>
Date: Wed, 12 Dec 2007 18:58:15 -0200

Hello everybody,

For some reason my PHP script hangs, no erros was returned by webserver, when I put session_start(); into the script.

Linux hm223 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686
Apache 2
PHP 5.1.6
CURL libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.1.4

Code sample

session_start();
$url = 'http://www.google.com';
$mycurl = curl_init();
curl_setopt($mycurl, CURLOPT_URL, $url);
curl_setopt($mycurl, CURLOPT_RETURNTRANSFER, true);
$retorno = curl_exec($mycurl);
echo($retorno);
curl_close($mycurl);

If I remove session_start() everything works fine.

Someone can help?

Best regards!

                
_______________________________________________________
Yahoo! Mail - Sempre a melhor opgco para vocj!
Experimente ja e veja as novidades.
http://br.yahoo.com/mailbeta/tudonovo/
 

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

                
_______________________________________________________
Yahoo! Mail - Sempre a melhor opgco para vocj!
Experimente ja e veja as novidades.
http://br.yahoo.com/mailbeta/tudonovo/
 
Received on 2007-12-12