Can not use command line interpreter

前端 未结 9 1024
盖世英雄少女心
盖世英雄少女心 2021-02-05 09:58

I have tried to execute simple php code in the php interpreter. When I executed the command php -a I getting the message

Interactive mode ena

9条回答
  •  鱼传尺愫
    2021-02-05 10:33

    This is what you should see:

    # php -a
    Interactive shell
    
    php > echo 1+1;
    2
    php > echo PHP_VERSION;
    5.3.2-1ubuntu4.14
    php > exit
    #
    

提交回复
热议问题