Join Up!
104886 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousFTP and FTPSCompression Streamsnext
Last updated: Tue, 29 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | German

PHP input/output streams

PHP 3.0.13 and up, php://output and php://input since PHP 4.3

  • php://stdin

  • php://stdout

  • php://stderr

  • php://output

  • php://input

php://stdin, php://stdout and php://stderr allow access to the corresponding input or output stream of the PHP process.

php://output allows you to write to the output buffer mechanism in the same way as print() and echo().

php://input allows you to read raw POST data. It is a less memory intensive alternative to $HTTP_RAW_POST_DATA and does not need any special php.ini dicetives.

php://stdin and php://input are read-only, whereas php://stdout, php://stderr and php://output are write-only.

User Contributed Notes
PHP input/output streams
add a note about notes
There are no user contributed notes for this page.
previousFTP and FTPSCompression Streamsnext
Last updated: Tue, 29 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST