您好,欢迎访问一九零五行业门户网

施用PHPEXCEL读取网络文件

使用phpexcel读取网络文件
读取本地文件没问题。换成读取web文件
could not open xxx.xls for reading! file does not exist.
file_exists报错。 如果改成file_get_contents()  取出的数据又不正常。求解决方案
分享到:
------解决方案--------------------
他本身就是用 file_get_contents 的 public function read($sfilename)
{
// check if file exists and is readable
if(!is_readable($sfilename)) {
throw new exception(could not open . $sfilename . for reading! file does not exist, or it is not readable.);
}
// get the file data
$this->data = file_get_contents($sfilename);

其它类似信息

推荐信息