我无法让exec()读或写我需要它的方式:
exec("php -f /root/script/screenshot.php")
Could not open input file失败。一定是权限问题。但是,将文件所有者更改为php用户并没有修复它。
也不能让它起作用:
exec("xvfb-run -a cutycapt --min-width=1920 --min-height=1920 --url='{$url}' --out='{$path}'");
失败,但不提供任何错误消息。cutycapt是一个截图应用,用来截取网站
当我登录到我的WordPress网站时,它会显示以下消息:
Warning: ksort() expects parameter 1 to be array, object given
in <WordPress>/wp-content/plugins/bbpress/includes/core/template-functions.php on line 316
消息的屏幕截图:
📷