Req #52190 [Bgs]: send php scripts finished message
| From: | christian dot gnoth at arcor dot de | Date: | Sat, 07 Aug 2010 06:58:06 +0000 |
| Subject: | Req #52190 [Bgs]: send php scripts finished message | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153208@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
User updated by: christian dot gnoth at arcor dot de
Reported by: christian dot gnoth at arcor dot de
Summary: send php scripts finished message
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:
as the virus software applications are getting a message that the php
script has ended from the server and sending the output to the browser -
it should be possible to built a function for that, or?
as I saw it on different pc's - on few the output of the long running
script was visible immediately at the browser and on others the anti
virus software was holding the output until the end of the script.
Previous Comments:
------------------------------------------------------------------------
[2010-08-07 01:19:58] johannes@php.net
See flush() and output buffer documentation. more can't be done.
------------------------------------------------------------------------
[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