我已经使用 php.ini 配置为所有脚本文件添加了一个 PHP 文件:
auto_prepend_file = "./file.php"
然后在运行脚本时出现此错误:
Site error: the file /home/user/public_html/path/index.php requires the
ionCube PHP Loader ioncube_loader_lin_5.3.so to be installed by the website
operator. If you are the website operator please use the ionCube Loader Wizard
to assist with installation.
由于脚本是由 ionCube 编码的,有什么办法可以做到这一点吗?
只是为了了解更多细节,这里是 file.php 内容:
<?php
$_SERVER['SERVER_ADDR'] = '100.101.102.103';
$_ENV['SERVER_ADDR'] = '100.101.102.103';
$HTTP_SERVER_VARS['SERVER_ADDR'] = '100.101.102.103';
?>