note 70112 deleted from function.fread by nlopess
| From: | nlopess@php.net | Date: | Wed, 08 Nov 2006 22:54:17 +0000 |
| Subject: | note 70112 deleted from function.fread by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-119526@lists.php.net to get a copy of this message | ||
Note Submitter: im at yourhouse dot not
----
Personally for command line usage, I use the following function.
<?php
function getinput($maxchars){
$f = fopen("php://stdin","r");
$input = fread($f, $maxchars);
$input = trim($input);
return $input;
}
?>