Run php code in command line

前端 未结 4 656
南笙
南笙 2021-01-01 10:38

I just began learning php. I\'ve installed php5 on linux and wrote very simple code just to get going.

How can I run scripts? I tried using the

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-01 11:03

    A simple:

    php myScript.php
    

    … should do the job.

    If it is acting like cat, then you probably forgot to switch out of template mode and into script mode with

提交回复
热议问题