Published in: PHP
// Require GET variables: $nombre, $path. Ej: ?nombre=test1.pdf&path=/folder/ $filename=$nombre; $filepath=$path.$nombre; //$fp = fopen($filepath, 'rb'); //$file_buffer = fread($fp, $filesize); //fclose ($fp); //print $file_buffer;
Comments
Subscribe to comments
You need to login to post a comment.

just an fyi. Might want to sanitize what is downloaded before password files and other non-public files are downloaded.