Skip to content
Advertisement

Tag: curl

Best way to manage long-running php script?

I have a PHP script that takes a long time (5-30 minutes) to complete. Just in case it matters, the script is using curl to scrape data from another server. This is the reason it’s taking so long; it has to wait for each page to load before processing it and moving to the next. I want to be able

Convert command line cURL to PHP cURL

I’ve never done any curl before so am in need of some help. I’ve tried to work this out from examples but cannot get my head around it! I have a curl command that I can successfully run from a linux(ubuntu) command line that puts a file to a wiki through an api. I would need to incorporate this curl

curl error 18 – transfer closed with outstanding read data remaining

when retrieving data from a URL using curl, I sometimes (in 80% of the cases) get error 18: transfer closed with outstanding read data remaining Part of the returned data is then missing. The weird thing is that this does never occur when the CURLOPT_RETURNTRANSFER is set to false, that is the curl_exec function doesn’t return the data but displays

Advertisement