I am getting the following error:
*PHP Warning: Missing argument 5 for VideoConverter::UpdateVideoDownloadProgress() in G:...\VideoConverter.class.php on line 370
PHP Warning: curl_getinfo() expects parameter 1 to be resource, integer given in G:...\VideoConverter.class.php on line 372*
my php code:
/*line 370:*/ private function UpdateVideoDownloadProgress($curlResource, $downloadSize, $downloaded, $uploadSize, $uploaded)
{
/*line 372:*/ $httpCode = curl_getinfo($curlResource, CURLINFO_HTTP_CODE);
if ($httpCode == "200" && $downloadSize > 0)
{
$percent = round($downloaded / $downloadSize, 2) * 100;
if ($percent > $this->_percentVidDownloaded)
{
$this->_percentVidDownloaded++;
$this->OutputDownloadProgress($percent, true);
}
}
}
Aucun commentaire:
Enregistrer un commentaire