Recipe 23.4. Reading from Standard Input23.4.1. ProblemYou want to 23.4.2. SolutionUse fopen( ) Reading from standard input
23.4.3. DiscussionRecipe 25.3 discusses reading data from the keyboard in a command-line context in more detail. Reading data from standard input isn't very useful in a web context, because information doesn't arrive via standard input. The bodies of HTTP post and file-upload requests are parsed by PHP and put into special variables. Non-file-upload post request bodies can also be read with the php://input stream, as discussed in Recipe 8.7. 23.4.4. See AlsoRecipe 25.3 for reading from the keyboard in a command-line context; Recipe 8.7 for reading POST request bodies; documentation on fopen( ) at http://www.php.net/fopen. |
Wednesday, January 20, 2010
Recipe 23.4. Reading from Standard Input
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment