SpankMarvin Posted May 29, 2008 Share Posted May 29, 2008 Hi there I'm new to these boards, and pretty new to PHP, learning as I go... I wonder if anyone has any ideas about this. I'm running a CMS in which files are available for download. I've had no problems uploading an mp3 reading and linking to it, and am aware of how to change php.ini in order to allow for larger uploads. However, when I test it, the 1.8MB file clearly loads up to 600-or-so K before freezing. It seems that with some browsers, this partial download is cached, and a refresh helps it along another 600-or-so K until finally the whole file has loaded. With other browsers, I don't get past 600K at all. This sounds like it might be a php.ini file setting -- does that sound reasonable? If so, does anyone have any ideas what I could tweak to allow for larger downloads? Thanks in advance J Link to comment https://forums.phpfreaks.com/topic/107834-freezing-file-download-due-to-php-setting/ Share on other sites More sharing options...
BlueSkyIS Posted May 29, 2008 Share Posted May 29, 2008 I'm ... aware of how to change php.ini in order to allow for larger uploads. ....does anyone have any ideas what I could tweak to allow for larger downloads? i'm confused. Link to comment https://forums.phpfreaks.com/topic/107834-freezing-file-download-due-to-php-setting/#findComment-552796 Share on other sites More sharing options...
SpankMarvin Posted May 29, 2008 Author Share Posted May 29, 2008 I'm ... aware of how to change php.ini in order to allow for larger uploads. ....does anyone have any ideas what I could tweak to allow for larger downloads? i'm confused. I'm aware that upload limits are dictated by the php.ini file. MY question is basically whether php.ini might be responsible either for a cap on download limits, or might cause some kind of timeout error which freezes the download of an uploaded file. ??? Link to comment https://forums.phpfreaks.com/topic/107834-freezing-file-download-due-to-php-setting/#findComment-552889 Share on other sites More sharing options...
FlyingIsFun1217 Posted May 29, 2008 Share Posted May 29, 2008 Are you sure it's not the server configuration on something pertaining to file transfers? FlyingIsFun1217 Link to comment https://forums.phpfreaks.com/topic/107834-freezing-file-download-due-to-php-setting/#findComment-552965 Share on other sites More sharing options...
DarkWater Posted May 29, 2008 Share Posted May 29, 2008 header("Pragma: no-cache"); Link to comment https://forums.phpfreaks.com/topic/107834-freezing-file-download-due-to-php-setting/#findComment-552968 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.