anonīms Posted June 1, 2011 Report Share Posted June 1, 2011 <a href="images/bilde.jpg">blabla</a>. Kā panākt, ka spiežot uz linka tiek prasīts vai viņu lejupielādēt? jo pašlaik vnk iet uz to linku. Quote Link to comment Share on other sites More sharing options...
indoom Posted June 1, 2011 Report Share Posted June 1, 2011 htaccessā <Files *.jpg> ForceType applicaton/octet-stream </Files> Quote Link to comment Share on other sites More sharing options...
Snapins Posted June 1, 2011 Report Share Posted June 1, 2011 Ar javascript pārbaudēm arī var, kad izlec logs. (: Quote Link to comment Share on other sites More sharing options...
marcis Posted June 1, 2011 Report Share Posted June 1, 2011 Kāds javascript "pārbaudēm" sakars ar download logu? Piemēru studijā Quote Link to comment Share on other sites More sharing options...
pingvīns Posted June 13, 2011 Report Share Posted June 13, 2011 href="download.php?src=images/bilde.jpg" download.php <? header('Content-type: image/jpg'); header('Content-Disposition: attachment; filename="bilde.jpg"'); readfile($_GET['src']); Quote Link to comment Share on other sites More sharing options...
marcis Posted June 14, 2011 Report Share Posted June 14, 2011 (edited) Lūk šis gan ir pēdējais no risinājumiem, ko varētu lietot. Nav pilnīgi nekādas vajadzības darbināt php interpretatoru, aizdirst ramu, u.t.t., lai simulētu webservera funkcijas. Nemaz nerunājot par to, ka konkrētais piemērs ir smuks caurums :) Edited June 14, 2011 by marcis Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.