Re: Asking for input from shell?
| From: | Jason Brooke | Date: | Mon, 09 Apr 2001 03:15:09 +0000 |
| Subject: | Re: Asking for input from shell? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47708@lists.php.net to get a copy of this message | ||
$fp = fopen("php://stdin", "r");
echo fgets($fp, 64);
fclose($fp);
----- Original Message -----
From: "enthalpy" <enthalpy@core.com>
To: <php-general@lists.php.net>
Sent: Monday, April 09, 2001 1:10 PM
Subject: [PHP] Asking for input from shell?
>
> anyone have sample code of how you can have a php script (cgi)
> ask for input from the shell?
>
> <-----CoreComm-Internet-Services---http://core.com----->
> (Jon Marshall CoreComm Services Chicago)
> (jonathon.marshall@core.com Systems Engineer II)
> (enthalpy@core.com Network Operations)
> <-----Enthalpy.org-------------http://enthalpy.org----->
> (enthalpy@enthalpy.org The World of Nothing)
> <------------------------------------------------------>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>