
Stiahnutie súboru cez PHP skript
Zdravíím.
Potrebujem cez PHP skript stiahnut subor. Mam to riesene takto:
header("Content-Disposition: attachment; filename=NAZOVSUBORU");
header("Content-length: VELKOST");
header("Content-type: application/octet-stream");
print $fp = readfile("SUBOR", "rb");
Funguje to relativne dobre, az na to, ze to dokaze stiahnut len male subory ... priblizne do 1 MB. Vacsie subory stiahne s velkostou 0b.
Tak sa chcem spytat ci sa da niekde nastavit aby to zvladalo aj vacsie subory, alebo ako by sa dal tento problem vyriesit?
vopred dakujem.