RE: [PHP] pipe into php

From: Date: Tue, 29 Aug 2000 06:04:21 +0000
Subject: RE: [PHP] pipe into php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14057@lists.php.net to get a copy of this message
> how would I print something coming from stdin to the screen ? $fd = fopen('php://stdin','r'); if (!$fd) exit(); while(!feof($fd)) print fread($fd,128); fclose($fd); ///// I have had trouble with the 'php://stdin' and have had to resort to '/dev/stdin', but php://stdin is how you are suppose to do it. -jeremy brand _______________________________________________________________________ GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9 _ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more __

« previous php.general (#14057) next »