Tag Archives: cURL

PHP Get Remote File Size And Content Type Posted by in PHP | 3 Comments

Just want to share a method to get file size and content type of a remote file via its URL with PHP. With a small note that CURL extension have to be installed on your server. Continue reading

PHP CURL Post To HTTPS Website Posted by in PHP | 1 Comment

You’re probably familiar with using PHP cURL to load content from a website via its URL or send a web request (post/get) to consume a particular HTTPS API web service. However, you may have to face with an curl_error: “SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines: SSL3_GET_SERVER_CERTIFICATE: certificate verify failed”curl_errno: 60 Continue reading

PHP Download Image Or File From URL Posted by in PHP | 19 Comments

I’ll show you 3 functions that download a particular file (ex: image,video,zip,pdf,doc,xls,etc) from a remote resource (via a valid URL) then save to your server. Continue reading

PHP Get Webpage Content Using cURL Posted by in PHP | 3 Comments

It’s very common task for web developers who want to download remote content of a particular URL, XML, RSS or even call to a API or web service. PHP’s cURL library which often comes with default configuration on popular shared hostings allows us to do that. Continue reading