RE: [PHP] Displaying content on the fly
| From: | Richard Black | Date: | Fri, 23 Nov 2001 16:30:36 +0000 |
| Subject: | RE: [PHP] Displaying content on the fly | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-75587@lists.php.net to get a copy of this message | ||
Try using the flush(); function. It flushes all output to the browser, and allows exactly the type
of thing you're talking about here
-----Original Message-----
From: Darren Gamble [SMTP:Darren.Gamble@sjrb.ca]
Sent: 23 November 2001 16:17
To: 'php-general@lists.php.net'
Subject: [PHP] Displaying content on the fly
Good day,
I've been using both Perl and PHP for some time now for dynamic content.
I'm presently running PHP4 as an apache module.
One difference that I've noticed is that PHP doesn't produce any output
until the script is complete, whereas with Perl one could print "doing
this... " , perform something, "done." messages when performing long tasks.
Is there any way to have this enabled? It would be quite appreciated, as I
have a few web pages that perform very heavy database work and I would like
to make the output "hot" so that I can print out statements as it
progresses- and if there is a problem, the user will be able to identify
where it failed.
There doesn't appear to be a php.ini directive that does this, though...
Thanks in advance,
============================
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net