avete qualche link di documentazione/tutorial su php non via browser ma via linea di comando?

cioè ho fatto un "test.bat" con dentro "php test.php / pause"

C:\php>php a.php
Content-type: text/html
X-Powered-By: PHP/4.4.0

prova
C:\php>pause
Premere un tasto per continuare . . .

intanto è possibile disattivare gli header http?
è possibile fare anche una cosa tipo "readln" che esiste in pascal? dubito che posso usare $_GET/$_POST