rhsCZ 19 Odesláno: 25. Únor, 2013 Share Odesláno: 25. Únor, 2013 zdravim mě vždy vrtalo hlavou jak udělat rychlostní omezení stahování souborů pokud by to někdo věděl tak bych byl rád Link to comment Share on other sites More sharing options...
0 Mivčo 90 Odesláno: 25. Únor, 2013 Share Odesláno: 25. Únor, 2013 mne to stahuje 3,4 MB/S Link to comment Share on other sites More sharing options...
0 rhsCZ 19 Odesláno: 25. Únor, 2013 Author Share Odesláno: 25. Únor, 2013 omg asi nevíš o co go ale mě jde o to že třeba ulozto má třeba omezení rychlosti stahování na 300 kb/s a mě jde o to jak to udělat Link to comment Share on other sites More sharing options...
0 Paulo* 32 Odesláno: 25. Únor, 2013 Share Odesláno: 25. Únor, 2013 kolik ti to stahuje cez uloz.to? Link to comment Share on other sites More sharing options...
0 rhsCZ 19 Odesláno: 25. Únor, 2013 Author Share Odesláno: 25. Únor, 2013 jelikož stahuju jako free user tak kolem těch 300 kb/s ale mě jde jak to nsatvit třeba kdybych to chtěl pro nějaké soubory udělat na nejaký server to omezení rychlosti stahování Link to comment Share on other sites More sharing options...
0 Deleted User 295 Odesláno: 1. Březen, 2013 Share Odesláno: 1. Březen, 2013 header('Cache-control: private'); header('Content-Type: application/octet-stream'); header('Content-Length: '.filesize($local_file)); header('Content-Disposition: filename='.$download_file); // flush content flush(); // open file stream $file = fopen($local_file, "r"); while(!feof($file)) { // send the current file part to the browser print fread($file, round($download_rate * 1024)); // flush the content to the browser flush(); // sleep one second sleep(1); } // close file stream fclose($file);} Link to comment Share on other sites More sharing options...
Dotaz
rhsCZ 19
zdravim mě vždy vrtalo hlavou jak udělat rychlostní omezení stahování souborů
pokud by to někdo věděl tak bych byl rád
Link to comment
Share on other sites
5 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now