2

下页第 6 点描述了如何使用脚本导入数据:http: //innoexts.com/currency-pricing/#.UjI1uPlgaHo

问题是该示例提供了一个 shell 脚本,因此在尝试从浏览器运行它时出现错误。由于我无权访问 Shell,有什么方法可以将这些类型的脚本作为浏览器运行?

4

2 回答 2

1

在 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();
}
于 2015-01-29T20:03:14.203 回答
1

我想出了解决方案。只需要注释掉/shell/abstract.php中受保护函数_validate()的内容

于 2013-09-15T11:21:49.210 回答