PHP Classes

SimpleXLSX::parse return file not found

Recommend this page to a friend!

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

  1. SimpleXLSX::parse return file not found   Reply   Report abuse  
Picture of André Boni 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  
Picture of Sergey Shuchkin 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  
Picture of André Boni 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é

  4. Re: SimpleXLSX::parse return file not found   Reply   Report abuse  
Picture of Rudi Moe Rudi Moe - 2020-06-20 10:31:12 - In reply to message 2 from Sergey Shuchkin
Almost same problem but now I get:
Fatal error: Call to undefined function libxml_disable_entity_loader() in /home/rudimxag/public_html/KITT/SimpleXLSX.php on line 542