Re: [PHP4BETA] Standard Features ?
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: [PHP4BETA] Standard Features ? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2017@lists.php.net to get a copy of this message | ||
> I am wondering if PHP4 supports STDIN, STDOUT, STDERR, and if there is a
> way to read command line args (ala argc, argv) when php is executed from
> the command line.
Uhh, argc,argv handling has been available for years. Dating all the way
back to early php2 days as far as I recall.
And stdout is not an issue of course. stdin/stderr can be access directly
by opening /dev/stdin and /dev/stderr or on some operating systems this
would be /dev/fd/0 and /dev/fd/2
This is by no means new to PHP4.
-Rasmus