En php la forma habitual de preguntar al usuario humano son los formularios, pero en muchos casos se necesita obtener un dató rápido del usuario en modo texto.Se puede usar fgets(STDIN)
#!/usr/bin/phpRef.:
<?php
print "\n Teclea algo: ";
$algo = trim(fgets(STDIN));
print "\n has tecleado: $algo\n";
?>
http://www.ehow.com/how_5321606_prompt-line-interface-using-php.html
No hay comentarios:
Publicar un comentario