You can define the progress function:
curl_setopt($curl, CURLOPT_PROGRESSFUNCTION, 'my_progress_handler');
The name of the callback function, where the callback function takes three parameters. The first is the cURL resource, the second is the file descriptor resource, and the third is the length. Return a string containing data.
For more information see here .
: PHP.
exec(), . , .
: , , , nevermind
, popen(), curl , .
-# curl, , .