[英]Encrypted PHP file issue
I have an php script which is encrypted I think using Zend. 我有一个使用Zend加密的php脚本。 When i run php filename.php, it runs fine although it doesn't when I include it in a bash script.
当我运行php filename.php时,它运行良好,尽管当我将其包含在bash脚本中时却没有。 Does anyone know what could be wrong?
有谁知道可能是错的吗? I have php installed in /usr/local/bin/.
我在/ usr / local / bin /中安装了php。
You can check to see what php.ini file your command line i running with this: 您可以检查一下我运行的命令行中的哪个php.ini文件:
$ php -i | grep 'Configuration File'
So then you can either modify that file to load zend optimizer. 因此,您可以修改该文件以加载zend优化器。 (look for the zend_extension flag in the php.ini your web server uses)
(在您的网络服务器使用的php.ini中查找zend_extension标志)
Or, you can force which php.ini file to use with the -c flag 或者,您可以通过-c标志强制使用哪个php.ini文件。
$ php -c /path/to/web-server/php.ini myscript.php
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.