通常,当我用PHP编写代码时,我不使用制表符,因为我想安装atom-beauty。所以,我在一段时间前安装了这个插件,但是它不能运行。我收到此输出
Could not find 'php'. The program may not be installed.
See php installation instructions at https://github.com/Glavin001/atom-beautify#beautifiers or go to http://php.net/manual/en/install.php
You can configure Atom B
我正在服务器上的php文件中尝试linux命令,用于正常运行时间,如下所示
<p> The uptime for this system is <?php $up_time=shell_exec('uptime');
echo $uptime; ?</p>
但是当我打开我的网页时,它只显示:
The uptime for this system is
PHP似乎没有运行该命令。如果我转到命令提示符并运行正常运行时间,我确实会看到结果。
我正在对Linux ssh服务器执行ssh操作。php文件驻留在服务器上的我的文件夹中。