php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52190 send php scripts finished message
Submitted: 2010-06-26 13:05 UTC Modified: 2010-08-07 08:58 UTC
From: christian dot gnoth at arcor dot de Assigned:
Status: Not a bug Package: *Web Server problem
PHP Version: 5.2.13 OS: Linux - Windows
Private report: No CVE-ID: None
 [2010-06-26 13:05 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-07 01:19 UTC] johannes@php.net
-Status: Open +Status: Bogus
 [2010-08-07 01:19 UTC] johannes@php.net
See flush() and output buffer documentation. more can't be done.
 [2010-08-07 08:58 UTC] christian dot gnoth at arcor dot de
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.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Sep 18 00:03:37 2021 UTC