Autor | Zpráva | ||
---|---|---|---|
Dragg Profil * |
#1 · Zasláno: 24. 3. 2008, 19:51:43
ahoj, snazim se o to, abych kdyz vyvolam link napr neco.php?i=http://server/images.jpg tak se soubor neotevrel ale vyskocil na me dialog s ulozenim souboru
zkusil jsem <?php if($_GET){ $id = explode("i=",$_GET['url']); } header('Content-type: image/jpeg'); header('Content-Disposition: attachment; filename="picture.jpg"'); ?> ale netusim jak mu to poslat, dik |
||
DJ Miky Profil |
#2 · Zasláno: 24. 3. 2008, 21:38:40
Jako Content-Type dej application/octet-stream
|
||
Dragg Profil * |
#3 · Zasláno: 25. 3. 2008, 14:57:32
tak uz to mam
<?php $id = $_GET["i"]; header("Content-Description: File Transfer"); header('Content-type: application/octet-stream'); header('Content-Disposition: attachment; filename="obrázek.jpg"'); readfile($id); ?> |
||
Jan Tvrdík Profil |
#4 · Zasláno: 25. 3. 2008, 15:20:41
Dragg
Doufám, že to ve finále bude napsáno bezpečněji. Takhle mu pošleš cokoli, o co požádá... |
||
Časová prodleva: 16 let
|
0