RE: [PHP-WIN] Converting a dos console batch file to a php shell script
| From: | Jim MacDiarmid | Date: | Fri, 03 Sep 2004 00:10:18 +0000 |
| Subject: | RE: [PHP-WIN] Converting a dos console batch file to a php shell script | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-24506@lists.php.net to get a copy of this message | ||
As a matter of fact, I have tried that. With no success, I might add. I've
also tried the ob_implicit_flush with no success.
Jim
-----Original Message-----
From: Gryffyn, Trevor [mailto:TGryffyn@air-cargo-inc.com]
Sent: Thursday, September 02, 2004 1:24 PM
To: php-windows@lists.php.net
Cc: Jim MacDiarmid
Subject: RE: [PHP-WIN] Converting a dos console batch file to a php shell
script
Silly response, but did you try the "flush()" command?
There's also a setting in the PHP.INI:
output_buffering = Off
Also check the Output Control Functions:
http://us4.php.net/manual/en/ref.outcontrol.php
Hope this helps!
-TG
> -----Original Message-----
> From: Jim MacDiarmid [mailto:jim.macdiarmid@comcast.net]
> Sent: Thursday, September 02, 2004 11:31 AM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Converting a dos console batch file to a php shell
> script
>
>
>
> Hi everyone,
>
> I've been searching for info to help me troubleshoot an issue I'm
> having with displaying output to the console during script processing,
> but I'm not having much luck. I'm hoping someone can shed some light
> on this or point me in right direction.
>
> I have a foreach construct that loops through an associative array and
> calls a nested function. Inside the foreach loop I would like to
> display the current array information that is being processed prior to
> passing to the nested function call. The problem I'm running into is
> that the output to the console window is delayed till after the
> forloop as completed, as if it's being buffered then flushed at the
> end.
>
> Any ideas how I can display information as processing occurs?
>
> Thanks in advance,
>
> Jim
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>