Posts Tagged ‘cURL’

Nov 6th


Resume HTTP downloads in PHP using cURL or fsockopen

6 years 1 week ago comment 1 Comment

This post describes a method to download a file using a PHP script and resume the download if the previous download was interrupted. The code here could be used while downloading a new version of a PHP application from the application author’s website. Two implementation examples are provided – one using cURL and another using fsockopen.


Oct 13th


cURL wrapper class with executable and PHP extension support

6 years 1 month ago comment No Comments

Most cURL wrapper classes I found could handle either the PHP extension or the command line executable version of cURL. I needed a class where I could set one variable and have it switch from using the PHP cURL extension to the cURL executable without having to change the other variable of the class.