nemakuphp Posted March 14, 2010 Report Share Posted March 14, 2010 Jautājums sekojošs. Kā panākt, lai ievadot direct link nevar piekļūt failam, piemēram, .zip arhīvam, bet teiksim caur linku http://domain.tld?file_id=2 varētu šo failu lietotājs ielādēt? Quote Link to comment Share on other sites More sharing options...
briedis Posted March 14, 2010 Report Share Posted March 14, 2010 http://www.higherpass.com/php/Tutorials/File-Download-Security/ gūglē: php download file Quote Link to comment Share on other sites More sharing options...
2easy Posted March 14, 2010 Report Share Posted March 14, 2010 lai ar direct link nevarētu piekļūt, ieliec tajā folderī .htaccess Order Allow,Deny Quote Link to comment Share on other sites More sharing options...
nemakuphp Posted March 15, 2010 Author Report Share Posted March 15, 2010 Tādā gadījumā padodot ar brieža metodi failu varēs ielādēt? Quote Link to comment Share on other sites More sharing options...
briedis Posted March 15, 2010 Report Share Posted March 15, 2010 Tādā gadījumā padodot ar brieža metodi failu varēs ielādēt? Jap Quote Link to comment Share on other sites More sharing options...
nemakuphp Posted March 15, 2010 Author Report Share Posted March 15, 2010 Paldies, viss izdevās Quote Link to comment Share on other sites More sharing options...
marcis Posted March 15, 2010 Report Share Posted March 15, 2010 Par failu downloadošanas tēmu te arī ir bijušas neskaitāmas diskusijas, iesaku pameklēt, jo nav jēgas gruzīt serveri, liežot failus caur php (te gan runa ir par lielāka apjoma failiem). Quote Link to comment Share on other sites More sharing options...
2easy Posted March 15, 2010 Report Share Posted March 15, 2010 serverim jāgruza būtu anyway. readfile() jau nav nekāda gruzīšanas, bet gan low level darbība. tā ka viss ir čikiniekā ;) 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.