using PHPExcel in JeliX

Topics: User Forum
Apr 14, 2009 at 10:42 AM
Hi all

Thanks for this great tool I'm trying to include in my app build with JeliX framework for replace php_writeexcel.
I have extracted PE on my local webserver (wamp) in the same directory as php_writeexcel I used before.
I have included 'PHPExcel.php' and also 'PHPExcel/Writer/Excel5.php' such I wish to obtain .xls file.
All is OK.
But when I execute my app, error happens such as below :
Fatal error: require_once() [function.require]: Failed opening required 'PHPExcel/Cell/DataType.php' (include_path='.;C:\php5\pear') in C:\Wamp\www\jelix\lib\tierce\PHPExcel\Cell.php on line 30
The script Cell.php is in PHPExcel directory and calls DataType.php in PHPExcel/Cell directory.
I suppose this is wrong as it cannot find DataType.php.
Please can you help me, because I rely on PE for progressing in my development.
Many thanks for your kind help.
Apr 15, 2009 at 7:21 AM
Something looks wrong with your include path. Normally you would use something like this:

set_include_path(get_include_path()    . PATH_SEPARATOR . 'C:\path\to\Classes');

In this example you would have a file located 'C:\path\to\Classes\PHPExcel.php'.