Posts Tagged ‘cURL’

Nov 6th

1

Resume HTTP downloads in PHP using cURL or fsockopen

5 years 1 month 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.

(more…)

Oct 13th

0

cURL wrapper class with executable and PHP extension support

5 years 2 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.

(more…)