Using curl_init in Zend Application is causing Session Error

Posted by Gublooo on Stack Overflow See other posts from Stack Overflow or by Gublooo
Published on 2010-05-07T05:45:03Z Indexed on 2010/05/07 5:48 UTC
Read the original article Hit count: 198

Filed under:
|
|
|

Hey guys I'm getting this weird error in my Zend application with this piece of code:

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'www.xyz.com/ab.php');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($curl);
curl_close($curl);      

This is the error, I get:

Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'session has already been started by session.auto-start or session_start()

When I remove that code everything works fine. Any idea ??

Thanks

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about zend