Application Architecture : Miscellaneous
User input in php command line
Submitted By: Jiju Thomas MathewDate: 02/15/07 14:13
The following piece of code will help capture user input when writing command line php scripts.
function getInput($msg){
fwrite(STDOUT, “$msg: “);
$varin = trim(fgets(STDIN));
return $varin;
}
http://www.php-trivandrum.org
| Comments: | ||
No Messages FoundYou can post questions/corrections/feedback here
| ||
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||

