Execute PEAR code from linux
| From: | Raul Alvarez | Date: | Tue, 02 Jun 2009 14:59:36 +0000 |
| Subject: | Execute PEAR code from linux | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-29871@lists.php.net to get a copy of this message | ||
Hi team,
I'm having this problem:
I've downloaded a code with library, is the spreadsheet-excel-writer
I have no problem to get my XLS files when I call my PHP from browser:
www.mypage.com/make/me/a/xls.php (works!)
But when I try to run this php file from Direct Admin "Cron Jobs"
(execute this php file every X time)
it returns this errors:
---------------------------------------------------------------------
Warning: chdir(): No such file or directory (errno 2) in
/home/pagecom/domains/page.com/public_html/makeFile.php on
line 2
[1] <?php
[2] chdir('phpxls');
[3] require_once 'phpxls/Writer.php';
[4] chdir('..');
Warning: require_once(ExcelWriter/Format.php): failed to open stream:
No such file
or directory in
/home/pageocom/domains/page.com/public_html/phpxls/ExcelWriter/Workbook.php
on line 35
[35] require_once 'PEAR.php';
Fatal error: require_once(): Failed opening required 'ExcelWriter/Format.php'
(include_path='.:/usr/local/lib/php') in
/home/pagecom/domains/page.com/public_html/phpxls/ExcelWriter/Workbook.php
on line 35
[35] require_once 'ExcelWriter/Format.php';
[36] require_once 'ExcelWriter/BIFFwriter.php';
[37] require_once 'ExcelWriter/Worksheet.php';
[38] require_once 'ExcelWriter/Parser.php';
[39] require_once 'OLE/PPS/Root.php';
[40] require_once 'OLE/PPS/File.php';
---------------------------------------------------------------------
can you help me please??
I did not changed any file in any directory.
Kind Regards.
--
- Raúl Alvarez -