下页第 6 点描述了如何使用脚本导入数据:http: //innoexts.com/currency-pricing/#.UjI1uPlgaHo
问题是该示例提供了一个 shell 脚本,因此在尝试从浏览器运行它时出现错误。由于我无权访问 Shell,有什么方法可以将这些类型的脚本作为浏览器运行?
下页第 6 点描述了如何使用脚本导入数据:http: //innoexts.com/currency-pricing/#.UjI1uPlgaHo
问题是该示例提供了一个 shell 脚本,因此在尝试从浏览器运行它时出现错误。由于我无权访问 Shell,有什么方法可以将这些类型的脚本作为浏览器运行?
在 shell/abstract.php 下面添加一行
protected $_factory; // Line 76
作为
protected $_passvalidation = false;
然后更改函数 __construct()
$this->_validate();
至
if(!$this->_passvalidation) $this->_validate();
在你的 shell 脚本中添加
function __construct() {
$this->_passvalidation = true;
parent::__construct();
}
我想出了解决方案。只需要注释掉/shell/abstract.php中受保护函数_validate()的内容