faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 12 people (58%) answered Yes
Recently 3 of 8 people (38%) answered Yes

Entry

I have PHP under Windows and Apache . How can I send some file to STDIN of PHP script?

Feb 19th, 2008 22:23
dman, Matt Parlane, Titus Hochgreve, Bosko Stanisic, http://www.ttnr.org


There is no STDIN for a php script.
But there are a lot of filesystem functions that enable you to write 
to, read from, copy, rename, erase, or get info about files.
I suggest you look them up in the php manual.
*********************
Not true!
PHP does have capability to read and write to and from standard I/O.
have a look at:
http://www.php.net/manual/en/features.commandline.php