io - php - I/O streaming

133

I was looking at the documentation here for I/O streaming in PHP: http://php.net/manual/en/features.commandline.io-streams.php

I have a question about how this works - if I were piping say 10,000 lines of input per second from a linux command into a php script, and the script were only able to process 1,000 within a second, what would happen? Would the PHP script just fall way behind or would it just skip data and get the latest 1000? I realize this may be considered a stupid question, but I thought I'd ask anyway.

People are also looking for solutions to the problem: php - How to send cookies with guzzle 6?

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.