Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

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

$
0
0

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

Viewing all articles
Browse latest Browse all 13200

Trending Articles