我正在使用wkhtmltopdf制作一个页面的pdf。 我的代码执行shell来运行使用这个wkhtmltopdf库的命令。 一切工作正常,我的wamp服务器,但是当代码运行在我的networking服务器上,它不起作用,并提供以下错误:
Warning: shell_exec() has been disabled for security reasons in /home/pssptech/public_html/.../cert.php on line 272
我认为php是在服务器上以安全模式运行,这就是为什么shell执行被禁用。 但主要的问题是我无法find我的远程networking服务器上的php.ini文件。
你能告诉我在哪里可以findconfiguration文件,以便我可以禁用安全模式?
提前致谢。
编辑你的php.ini并设置variablessafe_modeclosures。
safe_mode = Off
在linux下findphp.ini运行
find/ -name php.ini -print