A set of PHP HTTP Headers for file downloads that actually works in all modern browsers (and for many different file types). Yay!
PHP-HTTP - Free download as PDF File (.pdf), Text File (.txt) or read online for free. PHP Attacking Php - Free download as PDF File (.pdf), Text File (.txt) or read online for free. Basic PHP - Free download as Word Doc (.doc), PDF File (.pdf), Text File (.txt) or read online for free.
When you are using Curlopt_FILE to download directly into a file you must close the file handler after the curl_close() otherwise the file will be incomplete and you will not be able to use it until the end of the execution of the php…