Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10785 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8274 invoked by uid 1010); 26 Jun 2004 15:29:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8216 invoked by uid 1007); 26 Jun 2004 15:29:59 -0000 Message-ID: <20040626152959.8215.qmail@pb1.pair.com> To: internals@lists.php.net Reply-To: "Larry Adams" Date: Sat, 26 Jun 2004 11:30:00 -0400 Lines: 28 Organization: The Adams Family X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Posted-By: 68.41.36.22 Subject: Accessing keyboard input in Interactive PHP From: larryjadams@comcast.net ("Larry Adams") Ok, So I am running PHP in interactive mode utilizing the PROCESS command line option -F. I type the following command: c:\php\php.exe -a -F myfile.php When I run this command, I receive the "Interactive Mode Enabled" prompt. My question is, once I start keying in information and the program "myfile.php" is called, how do I get to the information that I just typed in on STDIN? If I attempt to use fgets(STDIN,255);, it does not get the first command only my next one. If I attempt to use the $_SERVER[...] variables, I only get information on "myfile.php" and not the input line I typed in. Let me explain. C:\i>c:\php\php.exe -a -F myfile.php Interactive mode enabled test // my function myfile.php is now called. The question is how do I retreive the input line "test" from myfile.php???? Thanks in Advance, Larry Adams