Afficher un message
Vieux 20/01/2008, 23h26   #1
BDthatsme
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Keyboard input using command line PHP under Windows

I can't get any of the various examples of keyboard input to work
using command line PHP.

I have Windows XP Pro SP 2 and PHP 5.1.6 (cli) (built: Aug 23 2006
16:35:53).

I can't find any info about why it doesn't work, or a way that does
work. Any suggestions?

examples of attempted variations: (and I've tried others)

$psLine = fgets (STDIN, 1024); // phpa.php at http://david.acz.org/phpa/

stdin = fopen("php://stdin", "r"); // PHP_Shell-0.3.1
$l = fgets(stdin);
  Réponse avec citation
 
Page generated in 1,12985 seconds with 9 queries