web: php 执行第三方命令或者shell脚本
摘要:今天在web-php后端脚本中执行外部shell脚本,使用了相对路径 ./../xx.sh 但是执行不成功,后来换成了绝对路径执行成功了, 考虑到因为php脚本包含导致的,路径不对了,但是使用绝对路径又不太好 可以使用 $cmd = __DIR__ . "/../xx.sh"; 参考: 【https
阅读全文
posted @ 2020-08-04 19:00
posted @ 2020-08-04 19:00