PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Feb 25, 2020 1:03 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: I/O Streams
PostPosted: Fri Dec 30, 2011 8:48 am 
Offline
Forum Newbie

Joined: Wed Aug 10, 2011 5:38 am
Posts: 13
I recently heard about I/O Streams, and got curious of how to use it.
I found out PHP had built in (files?) for that. php://stdin, php://stdout, etc,
But though I've googled around and read some articles and stuff,
I still don't get WHAT it (I/O Streams, stdin and stdout) is?
I get that it is standard input and output,
and stdin is read-only, and stdout is writeonly and so on,
but where does it come from - the standard input?
If your write this
Syntax: [ Download ] [ Hide ]
fopen("php://stdin",r+)

What would stdin contain? Why is it considered a file?
And where would the stuff you write to php://stdout go?
can you access php:// in browsers just like http://, ftp://, https://, etc?

I sincerely hope to get these questions answered.
Thanks in advance.


Top
 Profile  
 
 Post subject: Re: I/O Streams
PostPosted: Fri Dec 30, 2011 6:14 pm 
Offline
Moderator
User avatar

Joined: Mon Nov 03, 2003 7:13 pm
Posts: 5978
Location: Odessa, Ukraine


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group