Read stdin line by line - php -


i need read stdin php. need read first line > save variable > print variable > read second line > save same variable (rewrite old content) > print - read third line > ... > end of inserted text.

example of imput data:

u u b h > b 1 :h1 u c h b > c 1 :h2 u d 

can me?

here example how this. php standard input?

here http://www.php.net/manual/en/features.commandline.io-streams.php php manual manipulating i/o streams

if have further questions don't hessitate ask


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -