jorelpoder Seguir
Gamma
Verificación en dos pasos desactivada
Verificado por Whatsapp
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
- Desde
- 16 Ago 2017
- Mensajes
- 175
busque muchos ejemplos con curl pero no he podido encontre este pero no funciona
$curl = curl_init('https://drive.google.com/uc?id=1jf2IBRxV7Lh0EOgz_M2lZN-xuCCvJSrR&export=download');
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_NOBODY, true);
curl_exec($curl);
$fileSize = curl_getinfo($curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD);
$fileSizeMB = round(($fileSize / 1024) / 1024);
print($fileSize. " MB");
alguien tiene algun ejemplo que me colabore
gracias
$curl = curl_init('https://drive.google.com/uc?id=1jf2IBRxV7Lh0EOgz_M2lZN-xuCCvJSrR&export=download');
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_NOBODY, true);
curl_exec($curl);
$fileSize = curl_getinfo($curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD);
$fileSizeMB = round(($fileSize / 1024) / 1024);
print($fileSize. " MB");
alguien tiene algun ejemplo que me colabore
gracias