RE: [PHP] CLI question
From: Jay Blanchard (jay.blanchard_at_niicommunications.com)
Date: 12/17/03
- Next message: Bobber: "Quickform select element..."
- Previous message: Rodney Green: "CLI question"
- Next in thread: Mike Ford: "RE: [PHP] CLI question"
- Maybe reply: Mike Ford: "RE: [PHP] CLI question"
- Maybe reply: Mike Ford: "RE: [PHP] CLI question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 17 Dec 2003 15:32:56 -0600 To: "Rodney Green" <rgreen@cinchhost.com>, <php-general@lists.php.net>
[snip]
I'm using the CLI version 4.3.4 on Windows XP Pro. The script I'm
writing has only a couple of functions, a couple of "if" conditionals
and a "while" loop. At the very top of the script I have an echo
statement with a message I want printed to the console window. The
problem is that it's not echoed until all of the functions and other
stuff is executed. Why is this the case? Anything I can do to get the
echo statement to run first thing?
[/snip]
Use output buffering and flush the echo statement ....
http://us2.php.net/manual/en/function.flush.php
- Next message: Bobber: "Quickform select element..."
- Previous message: Rodney Green: "CLI question"
- Next in thread: Mike Ford: "RE: [PHP] CLI question"
- Maybe reply: Mike Ford: "RE: [PHP] CLI question"
- Maybe reply: Mike Ford: "RE: [PHP] CLI question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|