Can not use command line interpreter

前端 未结 9 1179
盖世英雄少女心
盖世英雄少女心 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:32

    type php -m and make sure you have the readline module. If you don't you won't be able to use it.

    http://www.php.net/manual/en/features.commandline.interactive.php

    As of PHP 5.1.0, the CLI SAPI provides an interactive shell using the -a option if PHP is compiled with the --with-readline option.

提交回复
热议问题