By createing a hidden IFRAME tag, downloads on a slow connection, or files larger than can be sent in 30 seconds (PHP timeout limit), can be downloaded, and not affect the interface as a result..
a better placement needs to be decided - and the zip creation needs to be the fastest (compress more) and small (less memory required) - an incremental approach might be possible
on multi-user this is a bit easier, especially if there are individual "home" folders, as with the online demo, then a downloads folder could be used
config def would be good, a default value of PHPNAV_FOLDER/tmp is probably fairly safe for most situations
there is one problem, creating a relative must be done in that correct place, which means CWD will be the (fastest) save point - however we do use *_navphp.zip so this is probably safe to do
a move only requires php initiation not php completion, so it can cope with large files safely (needs confirming)
I have a 100Mb html file that can make for good testing
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Great idea..
For this we can assume this strategy:
Give download link as "$doc_root/$filename" for large files...
This $doc_root can be either configured in config.php or in user profile.
a better placement needs to be decided - and the zip creation needs to be the fastest (compress more) and small (less memory required) - an incremental approach might be possible
on multi-user this is a bit easier, especially if there are individual "home" folders, as with the online demo, then a downloads folder could be used
config def would be good, a default value of PHPNAV_FOLDER/tmp is probably fairly safe for most situations
there is one problem, creating a relative must be done in that correct place, which means CWD will be the (fastest) save point - however we do use *_navphp.zip so this is probably safe to do
a move only requires php initiation not php completion, so it can cope with large files safely (needs confirming)
I have a 100Mb html file that can make for good testing