dsxpt62448 2016-05-11 20:28
浏览 79

如何使用PHPExcel读取非本地Excel

I have the following problem, the project is that a run will be placing data in excel and these data must be on a page monitoring , the tool I'm using is the PHPExcel library works without problem, the problem is the user will have the excel on your machine and the page will be on the server so you should be able to connect to the user's computer but by placing the address the library has problems, I do not know if any other function to help me redirect , now I exercise locally and does not work.

Don't problem:

$objPHPExcel = $objReader->load("D.xlsx");

With Problem:

$objPHPExcel = $objReader->load("localhost:8081/excel/ticket/D.xlsx");

Or

$objPHPExcel = $objReader->load("10.204.8.14:8081/excel/ticket/D.xlsx");

Message:

Uncaught exception 'PHPExcel_Reader_Exception' with message 'Could not open localhost:8081/excel/ticket/D.xlsx for reading! File does not exist.' in C:\xampp\htdocs\excel\ticket\Classes\PHPExcel\Reader\Excel2007.php:347 Stack trace: #0 C:\xampp\htdocs\excel\ticket\prueba.php(15): PHPExcel_Reader_Excel2007->load('localhost:8081/...') #1 {main} thrown in C:\xampp\htdocs\libreria_excel\ticket\Classes\PHPExcel\Reader\Excel2007.php on line 347

The URL is OK.

Thank you very much and greetings!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 python的qt5界面
    • ¥15 无线电能传输系统MATLAB仿真问题
    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀
    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100