1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| /*-----------------------------------------------------------------------------------------------*/
/*-------------------------------Telechargement de l'image demandé-------------------------------*/
/*-----------------------------------------------------------------------------------------------*/
$fullPath = "../container_uplad/copyrighted/$fullPath";
header( 'Pragma: no-cache' );
header( 'Cache-Control: no-cache, must-revalidate' );
header( 'Expires: 0' );
header( 'Content-Transfer-Encoding: binary' );
header( 'Content-Length: ' . filesize( $fullPath ) );
header( 'Content-Type: application/octetstream; name="' . basename($fullPath) . '"' );
header( 'Content-Disposition: attachment; filename="' . basename($fullPath) . '"' );
readfile($fullPath);
unlink ($fullPath);
//exit();
/*-----------------------------------------------------------------------------------------------*/
/*------------------------------/Telechargement de l'image demandé-------------------------------*/
/*-----------------------------------------------------------------------------------------------*/ |
Partager