不能使用命令行解释器 [英] Can not use command line interpreter
本文介绍了不能使用命令行解释器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在php解释器中执行简单的php代码。
执行命令 php -a
时收到消息
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 enabled
没有任何地方可以输入php。
但是我可以通过命令 php -r
执行php代码。例如,
:
Without any place for php input.
But I can execute a php code through the command php -r
.
for example:
php -r echo'Hello stackoverflow!';
您好stackoverflow!
Hello stackoverflow!
推荐答案
安装此程序:
php5-readline
然后尝试使用:
php -a
这篇关于不能使用命令行解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文