Updated include paths for examples

This commit is contained in:
Maarten Balliauw 2013-07-10 13:33:04 +02:00
parent 5818a79e67
commit 8057604241
71 changed files with 71 additions and 71 deletions

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;