calande Posted November 17, 2008 Share Posted November 17, 2008 Hello, I am streaming a file using PHP, so that a user of my web site can download a dynamicly-created zipped file. But if the download fails at one point, if you decide to resume it in your web browser, the download starts all over again, instead of resuming where it stopped, like it would do with a regular static file. Is this a bug? Thanks, Link to comment https://forums.phpfreaks.com/topic/133032-issue-streaming-a-file-using-php/ Share on other sites More sharing options...
DarkerAngel Posted November 17, 2008 Share Posted November 17, 2008 I would ask if you have the script reporting the file size but I not exactly sure that would help, but I think it could be worth a try. Link to comment https://forums.phpfreaks.com/topic/133032-issue-streaming-a-file-using-php/#findComment-691874 Share on other sites More sharing options...
calande Posted November 17, 2008 Author Share Posted November 17, 2008 Thanks, I will try sending the file size, I think it should help the browser determine also remaining download time... Link to comment https://forums.phpfreaks.com/topic/133032-issue-streaming-a-file-using-php/#findComment-691890 Share on other sites More sharing options...
DarkerAngel Posted November 17, 2008 Share Posted November 17, 2008 I don't know if you knew it or not but here you go: header("Content-Length: ".filesize($filename)); Link to comment https://forums.phpfreaks.com/topic/133032-issue-streaming-a-file-using-php/#findComment-691893 Share on other sites More sharing options...
calande Posted November 17, 2008 Author Share Posted November 17, 2008 Thanks! Yes, I have already used in the past, and at least I won't have to search for it on the PHP.net documentation Link to comment https://forums.phpfreaks.com/topic/133032-issue-streaming-a-file-using-php/#findComment-691898 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.