Merge branch 'develop' of https://github.com/PHPOffice/PHPExcel into develop

This commit is contained in:
Mark Baker 2013-07-11 12:25:16 +01:00
commit b8f783e5a3
73 changed files with 75 additions and 74 deletions

View File

@ -1,7 +1,5 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<project name="PHPExcel" default="release-standard" basedir="."> <project name="PHPExcel" default="release-standard" basedir=".">
<taskdef classname="phing.tasks.ext.d51PearPkg2Task" name="d51pearpkg2"/>
<target name="gather"> <target name="gather">
<if> <if>
<isset property="${packageVersion}"/> <isset property="${packageVersion}"/>
@ -152,6 +150,8 @@
</target> </target>
<target name="release-pear" depends="versionNumber"> <target name="release-pear" depends="versionNumber">
<taskdef classname="phing.tasks.ext.d51PearPkg2Task" name="d51pearpkg2"/>
<mkdir dir="${phing.dir}/release"/> <mkdir dir="${phing.dir}/release"/>
<echo msg="Creating PEAR release package (v${packageVersion})..."/> <echo msg="Creating PEAR release package (v${packageVersion})..."/>
@ -213,4 +213,4 @@
<echo msg="Cleaning build directory: ./build"/> <echo msg="Cleaning build directory: ./build"/>
<delete dir="${phing.dir}/build"/> <delete dir="${phing.dir}/build"/>
</target> </target>
</project> </project>

View File

@ -35,7 +35,7 @@ if (PHP_SAPI == 'cli')
die('This example should only be run from a Web Browser'); die('This example should only be run from a Web Browser');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Change these values to select the Rendering library that you wish to use // Change these values to select the Rendering library that you wish to use

View File

@ -35,7 +35,7 @@ if (PHP_SAPI == 'cli')
die('This example should only be run from a Web Browser'); die('This example should only be run from a Web Browser');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -35,7 +35,7 @@ if (PHP_SAPI == 'cli')
die('This example should only be run from a Web Browser'); die('This example should only be run from a Web Browser');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
include "05featuredemo.inc.php"; include "05featuredemo.inc.php";
/** Include PHPExcel_IOFactory */ /** Include PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
// Save Excel 2007 file // Save Excel 2007 file

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_sqlite; $cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_sqlite;
PHPExcel_Settings::setCacheStorageMethod($cacheMethod); PHPExcel_Settings::setCacheStorageMethod($cacheMethod);

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_sqlite3; $cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_sqlite3;
PHPExcel_Settings::setCacheStorageMethod($cacheMethod); PHPExcel_Settings::setCacheStorageMethod($cacheMethod);

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_in_memory_gzip; $cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_in_memory_gzip;
if (!PHPExcel_Settings::setCacheStorageMethod($cacheMethod)) { if (!PHPExcel_Settings::setCacheStorageMethod($cacheMethod)) {

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
/* /*

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
/* /*

View File

@ -34,7 +34,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel_IOFactory */ /** Include PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
if (!file_exists("05featuredemo.xlsx")) { if (!file_exists("05featuredemo.xlsx")) {

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object
echo date('H:i:s').' Create new PHPExcel object'.EOL; echo date('H:i:s').' Create new PHPExcel object'.EOL;

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// List functions // List functions

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
include "05featuredemo.inc.php"; include "05featuredemo.inc.php";
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
// Save Excel 95 file // Save Excel 95 file

View File

@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -38,7 +38,7 @@ date_default_timezone_set('Europe/London');
include "05featuredemo.inc.php"; include "05featuredemo.inc.php";
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
echo date('H:i:s') , " Write to CSV format" , EOL; echo date('H:i:s') , " Write to CSV format" , EOL;

View File

@ -38,7 +38,7 @@ date_default_timezone_set('Europe/London');
include "05featuredemo.inc.php"; include "05featuredemo.inc.php";
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
echo date('H:i:s') , " Write to HTML format" , EOL; echo date('H:i:s') , " Write to HTML format" , EOL;

View File

@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** PHPExcel */ /** PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// List functions // List functions

View File

@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel_IOFactory */ /** Include PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
if (!file_exists("14excel5.xls")) { if (!file_exists("14excel5.xls")) {

View File

@ -38,7 +38,7 @@ date_default_timezone_set('Europe/London');
include "05featuredemo.inc.php"; include "05featuredemo.inc.php";
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
// Change these values to select the Rendering library that you wish to use // Change these values to select the Rendering library that you wish to use

View File

@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -34,7 +34,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
// Check prerequisites // Check prerequisites

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Change these values to select the PDF Rendering library that you wish to use // Change these values to select the PDF Rendering library that you wish to use

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Read from Excel5 (.xls) template // Read from Excel5 (.xls) template

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
if (!file_exists("05featuredemo.xlsx")) { if (!file_exists("05featuredemo.xlsx")) {

View File

@ -33,7 +33,7 @@ ini_set('display_startup_errors', TRUE);
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
/** PHPExcel */ /** PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Set timezone // Set timezone

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$inputFileType = 'Excel5'; $inputFileType = 'Excel5';

View File

@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$inputFileType = 'Excel2007'; $inputFileType = 'Excel2007';

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** Include path **/ /** Include path **/
set_include_path(get_include_path() . PATH_SEPARATOR . '../Classes/'); set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../Classes/');
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
include 'PHPExcel/IOFactory.php'; include 'PHPExcel/IOFactory.php';

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** PHPExcel */ /** PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel(); $objPHPExcel = new PHPExcel();

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** PHPExcel */ /** PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel(); $objPHPExcel = new PHPExcel();

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** PHPExcel */ /** PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel(); $objPHPExcel = new PHPExcel();

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** PHPExcel */ /** PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel(); $objPHPExcel = new PHPExcel();

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** PHPExcel */ /** PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel(); $objPHPExcel = new PHPExcel();

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** PHPExcel */ /** PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel(); $objPHPExcel = new PHPExcel();

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** PHPExcel */ /** PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel(); $objPHPExcel = new PHPExcel();

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** PHPExcel */ /** PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel(); $objPHPExcel = new PHPExcel();

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** PHPExcel */ /** PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel(); $objPHPExcel = new PHPExcel();

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** PHPExcel */ /** PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel(); $objPHPExcel = new PHPExcel();

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** PHPExcel */ /** PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel(); $objPHPExcel = new PHPExcel();

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** Include path **/ /** Include path **/
set_include_path(get_include_path() . PATH_SEPARATOR . '../Classes/'); set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../Classes/');
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
include 'PHPExcel/IOFactory.php'; include 'PHPExcel/IOFactory.php';

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** Include path **/ /** Include path **/
set_include_path(get_include_path() . PATH_SEPARATOR . '../Classes/'); set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../Classes/');
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
include 'PHPExcel/IOFactory.php'; include 'PHPExcel/IOFactory.php';

View File

@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/ */
/** Include path **/ /** Include path **/
set_include_path(get_include_path() . PATH_SEPARATOR . '../Classes/'); set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../Classes/');
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
include 'PHPExcel/IOFactory.php'; include 'PHPExcel/IOFactory.php';

View File

@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />'); define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object // Create new PHPExcel object

View File

@ -10,7 +10,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** Include PHPExcel */ /** Include PHPExcel */
require_once '../Classes/PHPExcel.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
echo date('H:i:s') , " Create new PHPExcel object" , EOL; echo date('H:i:s') , " Create new PHPExcel object" , EOL;
$objPHPExcel = new PHPExcel(); $objPHPExcel = new PHPExcel();

View File

@ -31,7 +31,7 @@ error_reporting(E_ALL);
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
echo date('H:i:s') , " Load from Excel2003XML file" , PHP_EOL; echo date('H:i:s') , " Load from Excel2003XML file" , PHP_EOL;

View File

@ -31,7 +31,7 @@ error_reporting(E_ALL);
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
echo date('H:i:s') , " Load from Gnumeric file" , PHP_EOL; echo date('H:i:s') , " Load from Gnumeric file" , PHP_EOL;
$callStartTime = microtime(true); $callStartTime = microtime(true);

View File

@ -31,7 +31,7 @@ error_reporting(E_ALL);
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
echo date('H:i:s') , " Load from OOCalc file" , PHP_EOL; echo date('H:i:s') , " Load from OOCalc file" , PHP_EOL;
$callStartTime = microtime(true); $callStartTime = microtime(true);

View File

@ -9,7 +9,7 @@
error_reporting(E_ALL); error_reporting(E_ALL);
/** Include path **/ /** Include path **/
set_include_path(get_include_path() . PATH_SEPARATOR . '../Classes/'); set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../Classes/');
?> ?>
<h1>Quadratic Equation Solver</h1> <h1>Quadratic Equation Solver</h1>

View File

@ -9,7 +9,7 @@
error_reporting(E_ALL); error_reporting(E_ALL);
/** Include path **/ /** Include path **/
set_include_path(get_include_path() . PATH_SEPARATOR . '../Classes/'); set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../Classes/');
?> ?>
<h1>Quadratic Equation Solver</h1> <h1>Quadratic Equation Solver</h1>

View File

@ -31,7 +31,7 @@ error_reporting(E_ALL);
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
echo date('H:i:s') , " Load from SYLK file" , PHP_EOL; echo date('H:i:s') , " Load from SYLK file" , PHP_EOL;

View File

@ -31,7 +31,7 @@ error_reporting(E_ALL);
date_default_timezone_set('Europe/London'); date_default_timezone_set('Europe/London');
/** PHPExcel_IOFactory */ /** PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php'; require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
echo date('H:i:s') , " Load from XML file" , PHP_EOL; echo date('H:i:s') , " Load from XML file" , PHP_EOL;

View File

@ -30,6 +30,7 @@ defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'ci');
set_include_path(implode(PATH_SEPARATOR, array( set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../Classes'), realpath(APPLICATION_PATH . '/../Classes'),
'./', './',
dirname(__FILE__),
get_include_path(), get_include_path(),
))); )));