Command line output
| From: | Shawn McKenzie | Date: | Tue, 18 Nov 2003 19:41:57 +0000 |
| Subject: | Command line output | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-170147@lists.php.net to get a copy of this message | ||
O.K. I am just now experimenting with the CLI PHP and have another
question. With the following code, none of the echo output is seen until
the script completes. I even tried adding a flush() after the first echo
before the imap_open, but still the same behavior. Any ideas?
echo "Connecting to $server: $mbox ...\n\n";
$conn = imap_open("{" . $server . ":143/notls/norsh}" . $mbox, $user,
$pass);
echo "Receiving messages ...\n\n";
for ($i = 1; $i <= imap_num_msg($conn); $i++) {
...etc...
Thanks!
-Shawn