Posts Tagged ‘cURL’

Nov 6th


Resume HTTP downloads in PHP using cURL or fsockopen

7 years 9 months 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

7 years 10 months 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.