ProAnswers.org

Why can't you run PHP from the command line?

Why can’t you run PHP from the command line?

There is no problems with running php from the command line be it unix or windows.
However the output of the command will be to stdout in the form of HTML text output.
This HTML output is infact what is displayed with formatting and graphics by a web browser.
In addition php run by the webbrowser and from the command line maybe at different user privileges and display differently.