Jump to content

Will doing "return" in a function automatically close any cURL connections?


MySQL_Narb

Recommended Posts

 

            $page = curl_exec($ch);
            
            if(curl_errno($ch) != 0){
                return false;
            }
            
            curl_setopt($ch, CURLOPT_URL, '');
            $page = curl_exec($ch);
            curl_close($ch);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.