|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-14 14:56 UTC] mfischer@php.net
[2002-03-18 12:47 UTC] derek at web-solve dot net
[2002-04-15 00:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
It appears that if I have a fopen to stdin anywhere in my code that PHP will prompt for stdin at the beginning of its execution instead of where I put it in the code. The following example shows it: #!/usr/local/bin/php <? print "BEFORE\n"; $cd=fopen("php://stdin","r"); $cd2=fread($cd,1); print "AFTER\n"; ?> Now as soon as I execute it, it sits and waits for me to enter stdin, then prints BEFORE AFTER It should be showing BEFORE and then prompt for STDIN, unless there is something major I am missing here.