note 39267 added to function.readline

From: Date: Thu, 22 Jan 2004 15:01:53 +0000
Subject: note 39267 added to function.readline
Groups: php.notes 
Request: Send a blank email to php-notes+get-64022@lists.php.net to get a copy of this message
A workaround if readline is not compiled into php, because for example the command is only needed within an installation routine. It works as follows under Linux: $f=popen("read; echo \$REPLY","r"); $input=fgets($f,100); pclose($f); echo "Entered: $input\n"; ---- Manual Page -- http://www.php.net/manual/en/function.readline.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39267 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39267&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39267&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64022) next »