note 48244 added to function.fpassthru

From: Date: Thu, 16 Dec 2004 13:20:30 +0000
Subject: note 48244 added to function.fpassthru
Groups: php.notes 
Request: Send a blank email to php-notes+get-81861@lists.php.net to get a copy of this message
In relation to using sessions and fpassthru together. Try adding: session_write_close() somewhere near the top of the download script, before you start sending the video, and that should take care of it. I've implemented and tested session_write_close() and it works like a dream. Other links can now be clicked and loaded whilst a big file is being passed using fpassthru. Big thanks to Greg for this tip. What a helpful community we live in :0) ---- Manual Page -- http://www.php.net/manual/en/function.fpassthru.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48244 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48244&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48244&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48244&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48244&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48244&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48244&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48244&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81861) next »