What is the download call
Posted: Sat May 19, 2012 11:30 pm
What is the code that calls the file to be downloaded like the one once you press download. Trying to add media embedding
Collection of Daddy's scripts!
http://forum.daddyscripts.com/
SamEA wrote:What exactly are you trying to accomplish?
<?php echo $scripturl. "download.php?a=" . $filecrc . "&b=" . md5($foundfile[2].$_SERVER['REMOTE_ADDR']) ?>
header('Content-type: application/octetstream');
header('Content-Length: ' . filesize("./storage/".$validdownload[0]));
header('Content-Disposition: attachment; filename="'.$validdownload[1].'"');
readfile("./storage/".$validdownload[0]);