PHP Classes
elePHPant
Icontem

SimpleXLSX::parse return file not found

Recommend this page to a friend!

      Simple XLSX  >  All threads  >  SimpleXLSX::parse return file not found  >  (Un) Subscribe thread alerts  
Subject:SimpleXLSX::parse return file not found
Summary:SimpleXLSX::parse
Messages:3
Author:André Boni
Date:2018-06-06 12:09:32
 

 


  1. SimpleXLSX::parse return file not found   Reply   Report abuse  
André Boni - 2018-06-06 12:09:32
Hi, All

I got this error when I tried to read an Excel file as below:

if ( $xlsx = SimpleXLSX::parse('countries_and_population.xlsx')) {

I was copied from your github site. This file exists in the same folder of SimpleXLSX class.

Let me know what is wrong, please.

I use this class version:

* SimpleXLSX php class v0.7.6
* MS Excel 2007 workbooks reader
*
* Copyright (c) 2012 - 2017 SimpleXLSX

Thank you,

André Boni

  2. Re: SimpleXLSX::parse return file not found   Reply   Report abuse  
Sergey Shuchkin - 2018-06-06 12:40:56 - In reply to message 1 from André Boni
your test scrip not in smplexlsx.class.php folder

pls define full path
....SimpleXLSX::parse( __DIR__.'/pathtosimplexlsx/countries_and_population.xlsx'


  3. Re: SimpleXLSX::parse return file not found   Reply   Report abuse  
André Boni - 2018-06-07 22:06:02 - In reply to message 2 from Sergey Shuchkin
Hi, Sergey

Thanks for your support. So if I doing an upload an Excel file from user machine to my web server and want to open this Excel after the upload, I need to save it in a folder before use the class.

Is this correct ?

thks

André