I have a lot of experience writing php scripts that run in a web server context and have little or no php scripting experience to output CLI or GUI.
I used the command line for Linux, but do not have much experience with DOS.
Suppose I have a php script, namely:
<?php
echo('Hello world');
for ($idx = 0 ; $idx < 100 ; $idx++ )
{
echo 'I am line '. $idx . PHP_EOL;
}
Then I ran it at the DOS command prompt:
Now this will quickly exit the output, and I have to scroll the DOS command window to exit.
I want the output to be full screen.
How do you do this from a DOS user perspective?
In addition, although this is not my main main question, I would also be interested to know how to make the php script "wait for input" from the command line.