note 35337 added to wrappers

From: Date: Thu, 28 Aug 2003 06:36:08 +0000
Subject: note 35337 added to wrappers
Groups: php.notes 
Request: Send a blank email to php-notes+get-55201@lists.php.net to get a copy of this message
i found this exemple in : Chapter 23. Using PHP from the command line i taugh it fitted better here <? function read ($length='255') { if (!isset ($GLOBALS['StdinPointer'])) { $GLOBALS['StdinPointer'] = fopen ("php://stdin","r"); } $line = fgets ($GLOBALS['StdinPointer'],$length); return trim ($line); } // then echo "Enter your name: "; $name = read (); echo "\nHello $name! Where you came from? "; $where = read (); echo "\nI see. $where is very good place."; ?> good thanks to punk [_at_] studionew [_dot_] com ---- Manual Page -- http://www.php.net/manual/en/wrappers.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35337 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35337&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35337&report=yes

« previous php.notes (#55201) next »