READ SOME XLS FILE FROM REQUEST

Topics: Project Management Forum, User Forum
Sep 2, 2010 at 8:55 PM

hi 

i have a question in all the test files i see that you call the file with the path  on the server. but i need to send with html (a input file) the FILE and read with PHPexcel.

 

please help me How can i do that?

Coordinator
Sep 2, 2010 at 10:15 PM

If you're trying to read a file, then it must be accessible from the server. If your file is on the client's PC, then it needs to be uploaded to the server before it can be accessed by PHPExcel.

If you want to send a file directly to the browser, rather than write it to disk on the server, then look at examples 01simple-download-xls.php and 01simple-download-xlsx.php in the /Tests directory.