note 70112 added to function.fread
| From: | im at yourhouse dot not | Date: | Tue, 03 Oct 2006 21:48:13 +0000 |
| Subject: | note 70112 added to function.fread | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-118001@lists.php.net to get a copy of this message | ||
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;
}
?>
----
Server IP: 64.71.164.2
Probable Submitter: 71.254.77.246
----
Manual Page -- http://www.php.net/manual/en/function.fread.php
Edit -- https://master.php.net/note/edit/70112
Del: integrated -- https://master.php.net/note/delete/70112/integrated
Del: useless -- https://master.php.net/note/delete/70112/useless
Del: bad code -- https://master.php.net/note/delete/70112/bad+code
Del: spam -- https://master.php.net/note/delete/70112/spam
Del: non-english -- https://master.php.net/note/delete/70112/non-english
Del: in docs -- https://master.php.net/note/delete/70112/in+docs
Del: other reasons-- https://master.php.net/note/delete/70112
Reject -- https://master.php.net/note/reject/70112
Search -- https://master.php.net/manage/user-notes.php