kumaramit12325 / php-excel-reader

Automatically exported from code.google.com/p/php-excel-reader
0 stars 0 forks source link

Reading .xls from URL #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I want to read .xls from remote system ( url )
2.
3.

What is the expected output? What do you see instead?
I expected the file output but it is saying file is readonly. I also given
permission to the remote .xls file.

Please provide any additional information below.

Original issue reported on code.google.com by ramu....@gmail.com on 7 Jan 2010 at 11:35

GoogleCodeExporter commented 8 years ago
Using version 1.7.4

Code:
$reader = 
PHPExcel_IOFactory::createReaderForFile('http://www.eia.gov/dnav/ng/hist_xls/N30
50PA3m.xls');

Result:
Could not open http://www.eia.gov/dnav/ng/hist_xls/N3050PA3m.xls for reading! 
File does not exist.

Looks like it's failing in PHPExcel_Reader_Excel5::canRead(), when it calls 
file_exists() on an URL.

Is this even possible? I mean, converting the reader so that it can use URLs 
instead of local files?

Original comment by rosko.iv...@gmail.com on 16 Nov 2010 at 10:13