Req #52190 [Opn->Bgs]: send php scripts finished message
| From: | johannes@php.net | Date: | Fri, 06 Aug 2010 23:19:58 +0000 |
| Subject: | Req #52190 [Opn->Bgs]: send php scripts finished message | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153177@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52190&edit=1
ID: 52190
Updated by: johannes@php.net
Reported by: christian dot gnoth at arcor dot de
Summary: send php scripts finished message
-Status: Open
+Status: Bogus
Type: Feature/Change Request
Package: *Web Server problem
Operating System: Linux - Windows
PHP Version: 5.2.13
Block user comment: N
New Comment:
See flush() and output buffer documentation. more can't be done.
Previous Comments:
------------------------------------------------------------------------
[2010-06-26 13:05:02] christian dot gnoth at arcor dot de
Description:
------------
Hello,
I have a long running PHP script - with Web-Browser Interface and MySQL
access.
The user starts a migration of data in MySQL - it can take a lot of
time. The script generates for each step it takes output and sends it to
the web browser.
I used output buffering.
On few PC the anti-virus software helds the output back and the user do
not gets any message. For long running task it may be difficult for the
user to decide if the script hangs or it is still active.
So I wanted send a PHP script finished message - so that the output is
released from the anti virus software and shown in the browser.
sending a HTTP header() 200 status code is not possible - I am getting a
warning: 'header already sent - output started at....'
Test script:
---------------
wordpress plugin - joomla to wordpress migrator:
http://wordpress.org/extend/plugins/joomla-to-wordpress-migrator/
Expected result:
----------------
a function which sends PHP script status code from the server to the
browser.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52190&edit=1