note 57142 added to wrappers
| From: | drewish at katherinehouse dot com | Date: | Sun, 25 Sep 2005 06:50:08 +0000 |
| Subject: | note 57142 added to wrappers | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95736@lists.php.net to get a copy of this message | ||
Be aware that contrary to the way this makes it sound, under Apache, php://output and php://stdout
don't point to the same place.
<?php
$fo = fopen('php://output', 'w');
$fs = fopen('php://stdout', 'w');
fputs($fo, "You can see this with the CLI and Apache.\n");
fputs($fs, "This only shows up on the CLI...\n");
fclose($fo);
fclose($fs);
?>
Using the CLI you'll see:
You can see this with the CLI and Apache.
This only shows up on the CLI...
Using the Apache SAPI you'll see:
You can see this with the CLI and Apache.
----
Manual Page -- http://www.php.net/manual/en/wrappers.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57142
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57142&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57142&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57142&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57142&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57142&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57142&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57142&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57142&report=yes
Search -- http://master.php.net/manage/user-notes.php