im trying to download a file from a url, when I use the browser the download dialog works but when I use this code the new file on my server stay empty.
$ch
Your url using https connection. Use the following curl option as well.
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);