简体   繁体   English

找不到php命令

[英]php command not found

I am using Php in Linux Cent OS. 我在Linux Cent OS中使用Php。 I wanted to convert PDF to SWF, So I use SWFTools. 我想将PDF转换为SWF,所以我使用SWFTools。 SWFTools consists of pdf2swf command, which is executing fine when I use it in command line. SWFTools由pdf2swf命令组成,当我在命令行中使用它时,它执行得很好。 But the command is not working when I execute it through php. 但是当我通过php执行命令时,该命令不起作用。

Error: command not found 错误:找不到命令

I have found the extensions are up to date. 我发现扩展名是最新的。

Anything else is missing in between? 之间还有其他东西吗?

Use the full path. 使用完整路径。

The path environmental variable will be different when running under PHP, since that will run as another user. 在PHP下运行时,路径环境变量将有所不同,因为它将以另一个用户身份运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM