Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sFile = './arquivo/imagem.txt';
- header('Content-type: application/oct-stream');
- header("Content-Disposition: attachment; filename=\"$sFile\"");
- readfile("ftp://login:senha@host/$sFile");
- exit;
Add Comment
Please, Sign In to add comment