dou760663 2017-07-09 04:26 采纳率: 100%
浏览 137

从url保存为.xlsb文件到.xls

I have a file .xlsb from url, I use this code to download it and save it to .xls file

$filename = 'public/files/savedfile.xls';
file_put_contents($filename, fopen($url, 'r'));

But it didn't correct format even though it was saved .xls file (correct extension). And when I use phpexcel to read it, phpexcel return an error:

 [ErrorException]
 DOMDocument::loadHTML(): Invalid char in CDATA 0x3 in Entity, line: 1

How can I Save As this file from url to .xls file (correct extension and format).

P/s: url file here

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 程序不包含适用于入口点的静态Main方法
    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记