|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-24 11:47 UTC] tony2001@php.net
[2005-09-25 09:39 UTC] drewish at katherinehouse dot com
[2005-09-25 09:51 UTC] drewish at katherinehouse dot com
[2005-09-28 21:13 UTC] drewish at katherinehouse dot com
[2005-10-13 15:18 UTC] vrana@php.net
[2005-10-13 18:48 UTC] drewish at katherinehouse dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 14:00:01 2025 UTC |
Description: ------------ I'm trying to move some code that was written for the CLI to the web. It makes extensive use fprintf() and fputs() and under Apache2 it give no output. Reproduce code: --------------- <?php $fp = fopen('php://stdout', 'w'); if ($fp === false) { die('open failed.'); } print "You can see this with the CLI and Apache.\n"; fputs($fp, "This only shows up on the CLI...\n"); fclose($fp); ?> Expected result: ---------------- Under FreeBSD: amorton@multivac:/home/www/multivac> php phptest.php You can see this with the CLI and Apache. This only shows up on the CLI... Under Windows XP: D:\temp>php phptest.php You can see this with the CLI and Apache. This only shows up on the CLI... Actual result: -------------- Viewing the page using Apache2 and mod_php5: You can see this with the CLI and Apache.