Re: [PHP4BETA] PHP4/Zend - Wishlist?
| From: | Sascha Schumann | Date: | Wed, 09 Jun 1999 13:23:47 +0000 |
| Subject: | Re: [PHP4BETA] PHP4/Zend - Wishlist? | ||
| References: | 1 2 3 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1413@lists.php.net to get a copy of this message | ||
On Wed, Jun 09, 1999 at 02:13:57PM +0100, Karl Pielorz wrote:
> Sascha Schumann wrote:
>
> > Many Unices have /dev/std{in,out,err} or /dev/fd/[0-3] which you
> > can fopen and use as normal.
>
> Yeah, I've tried this (I run FreeBSD 4.0-Current), but couldn't get it to
> work... I also tried opening 'file 0/1/2' etc. - but that didn't work
> either...
>
> I'll give it another go with /dev/stdin etc. just in case...
>
> Cheers,
>
> -Karl
[sas@guerilla php3]$ ./php stdtest >/dev/null
Just a test
[sas@guerilla php3]$ uname -srm
FreeBSD 3.2-STABLE i386
[sas@guerilla php3]$ cat stdtest
<?
$fd = fopen("/dev/stderr", "w");
fputs($fd, "Just a test\n");
--
Regards,
Sascha Schumann
Consultant