diff --git a/Examples/01simple-download-pdf.php b/Examples/01simple-download-pdf.php
index d3dcdfc4..4de03471 100644
--- a/Examples/01simple-download-pdf.php
+++ b/Examples/01simple-download-pdf.php
@@ -35,7 +35,7 @@ if (PHP_SAPI == 'cli')
die('This example should only be run from a Web Browser');
/** 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
diff --git a/Examples/01simple-download-xls.php b/Examples/01simple-download-xls.php
index f7f7aed9..ddbfc44a 100644
--- a/Examples/01simple-download-xls.php
+++ b/Examples/01simple-download-xls.php
@@ -35,7 +35,7 @@ if (PHP_SAPI == 'cli')
die('This example should only be run from a Web Browser');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/01simple-download-xlsx.php b/Examples/01simple-download-xlsx.php
index 7e040b37..a2b927b8 100644
--- a/Examples/01simple-download-xlsx.php
+++ b/Examples/01simple-download-xlsx.php
@@ -35,7 +35,7 @@ if (PHP_SAPI == 'cli')
die('This example should only be run from a Web Browser');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/01simple.php b/Examples/01simple.php
index 5dbf743c..baeb4cc9 100644
--- a/Examples/01simple.php
+++ b/Examples/01simple.php
@@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/02types-xls.php b/Examples/02types-xls.php
index 005d2ff2..1e9025d6 100644
--- a/Examples/02types-xls.php
+++ b/Examples/02types-xls.php
@@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/02types.php b/Examples/02types.php
index 914c82d9..4fc4114a 100644
--- a/Examples/02types.php
+++ b/Examples/02types.php
@@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/03formulas.php b/Examples/03formulas.php
index 4f464d44..04e56d24 100644
--- a/Examples/03formulas.php
+++ b/Examples/03formulas.php
@@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/04printing.php b/Examples/04printing.php
index de6aa49e..6a90eede 100644
--- a/Examples/04printing.php
+++ b/Examples/04printing.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/05featuredemo.php b/Examples/05featuredemo.php
index 83e36c56..3bfb9984 100644
--- a/Examples/05featuredemo.php
+++ b/Examples/05featuredemo.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
include "05featuredemo.inc.php";
/** Include PHPExcel_IOFactory */
-require_once '../Classes/PHPExcel/IOFactory.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
// Save Excel 2007 file
diff --git a/Examples/06largescale-with-cellcaching-sqlite.php b/Examples/06largescale-with-cellcaching-sqlite.php
index b3bdcac9..80a9e436 100644
--- a/Examples/06largescale-with-cellcaching-sqlite.php
+++ b/Examples/06largescale-with-cellcaching-sqlite.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_sqlite;
PHPExcel_Settings::setCacheStorageMethod($cacheMethod);
diff --git a/Examples/06largescale-with-cellcaching-sqlite3.php b/Examples/06largescale-with-cellcaching-sqlite3.php
index 768f7d16..678e2ecd 100644
--- a/Examples/06largescale-with-cellcaching-sqlite3.php
+++ b/Examples/06largescale-with-cellcaching-sqlite3.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_sqlite3;
PHPExcel_Settings::setCacheStorageMethod($cacheMethod);
diff --git a/Examples/06largescale-with-cellcaching.php b/Examples/06largescale-with-cellcaching.php
index ff6e7b2d..adb93c4b 100644
--- a/Examples/06largescale-with-cellcaching.php
+++ b/Examples/06largescale-with-cellcaching.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_in_memory_gzip;
if (!PHPExcel_Settings::setCacheStorageMethod($cacheMethod)) {
diff --git a/Examples/06largescale-xls.php b/Examples/06largescale-xls.php
index b5b80695..d1fde891 100644
--- a/Examples/06largescale-xls.php
+++ b/Examples/06largescale-xls.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
/*
diff --git a/Examples/06largescale.php b/Examples/06largescale.php
index 3eb43123..2e597d3f 100644
--- a/Examples/06largescale.php
+++ b/Examples/06largescale.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
/*
diff --git a/Examples/07reader.php b/Examples/07reader.php
index 93456ceb..482a375d 100644
--- a/Examples/07reader.php
+++ b/Examples/07reader.php
@@ -34,7 +34,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel_IOFactory */
-require_once '../Classes/PHPExcel/IOFactory.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
if (!file_exists("05featuredemo.xlsx")) {
diff --git a/Examples/08conditionalformatting.php b/Examples/08conditionalformatting.php
index 89a77a78..6f384d26 100644
--- a/Examples/08conditionalformatting.php
+++ b/Examples/08conditionalformatting.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/08conditionalformatting2.php b/Examples/08conditionalformatting2.php
index b59c66d2..630eb6b6 100644
--- a/Examples/08conditionalformatting2.php
+++ b/Examples/08conditionalformatting2.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/09pagebreaks.php b/Examples/09pagebreaks.php
index f37f763f..5b2da248 100644
--- a/Examples/09pagebreaks.php
+++ b/Examples/09pagebreaks.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/10autofilter-selection-1.php b/Examples/10autofilter-selection-1.php
index 98f46bab..ef41cf16 100644
--- a/Examples/10autofilter-selection-1.php
+++ b/Examples/10autofilter-selection-1.php
@@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/10autofilter-selection-2.php b/Examples/10autofilter-selection-2.php
index 82bd8b53..c6628114 100644
--- a/Examples/10autofilter-selection-2.php
+++ b/Examples/10autofilter-selection-2.php
@@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/10autofilter-selection-display.php b/Examples/10autofilter-selection-display.php
index 26eefece..0e60e371 100644
--- a/Examples/10autofilter-selection-display.php
+++ b/Examples/10autofilter-selection-display.php
@@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/10autofilter.php b/Examples/10autofilter.php
index d9cb5405..3f7975c6 100644
--- a/Examples/10autofilter.php
+++ b/Examples/10autofilter.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
echo date('H:i:s').' Create new PHPExcel object'.EOL;
diff --git a/Examples/11documentsecurity-xls.php b/Examples/11documentsecurity-xls.php
index 6ad13005..071b4aea 100644
--- a/Examples/11documentsecurity-xls.php
+++ b/Examples/11documentsecurity-xls.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/11documentsecurity.php b/Examples/11documentsecurity.php
index 7a5135c5..94378a9d 100644
--- a/Examples/11documentsecurity.php
+++ b/Examples/11documentsecurity.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/12cellProtection.php b/Examples/12cellProtection.php
index 77ad5c2e..f6507b1f 100644
--- a/Examples/12cellProtection.php
+++ b/Examples/12cellProtection.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/13calculation.php b/Examples/13calculation.php
index bfbd51d2..c1c0de8d 100644
--- a/Examples/13calculation.php
+++ b/Examples/13calculation.php
@@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// List functions
diff --git a/Examples/14excel5.php b/Examples/14excel5.php
index f56c5d45..62a9fe46 100644
--- a/Examples/14excel5.php
+++ b/Examples/14excel5.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
include "05featuredemo.inc.php";
/** PHPExcel_IOFactory */
-require_once '../Classes/PHPExcel/IOFactory.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
// Save Excel 95 file
diff --git a/Examples/15datavalidation-xls.php b/Examples/15datavalidation-xls.php
index df99bdc7..9652546d 100644
--- a/Examples/15datavalidation-xls.php
+++ b/Examples/15datavalidation-xls.php
@@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/15datavalidation.php b/Examples/15datavalidation.php
index faabddef..af49c6a0 100644
--- a/Examples/15datavalidation.php
+++ b/Examples/15datavalidation.php
@@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/16csv.php b/Examples/16csv.php
index b456c9c3..9f940518 100644
--- a/Examples/16csv.php
+++ b/Examples/16csv.php
@@ -38,7 +38,7 @@ date_default_timezone_set('Europe/London');
include "05featuredemo.inc.php";
/** 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;
diff --git a/Examples/17html.php b/Examples/17html.php
index c08e902a..3ad968d1 100644
--- a/Examples/17html.php
+++ b/Examples/17html.php
@@ -38,7 +38,7 @@ date_default_timezone_set('Europe/London');
include "05featuredemo.inc.php";
/** 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;
diff --git a/Examples/18extendedcalculation.php b/Examples/18extendedcalculation.php
index fb80dc02..b037106a 100644
--- a/Examples/18extendedcalculation.php
+++ b/Examples/18extendedcalculation.php
@@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// List functions
diff --git a/Examples/19namedrange.php b/Examples/19namedrange.php
index 8a86bf74..444ca07c 100644
--- a/Examples/19namedrange.php
+++ b/Examples/19namedrange.php
@@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/20readexcel5.php b/Examples/20readexcel5.php
index 2aeefb25..d09c0520 100644
--- a/Examples/20readexcel5.php
+++ b/Examples/20readexcel5.php
@@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel_IOFactory */
-require_once '../Classes/PHPExcel/IOFactory.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
if (!file_exists("14excel5.xls")) {
diff --git a/Examples/21pdf.php b/Examples/21pdf.php
index cae16a01..70aa792b 100644
--- a/Examples/21pdf.php
+++ b/Examples/21pdf.php
@@ -38,7 +38,7 @@ date_default_timezone_set('Europe/London');
include "05featuredemo.inc.php";
/** 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
diff --git a/Examples/22heavilyformatted.php b/Examples/22heavilyformatted.php
index e4025c12..188857d2 100644
--- a/Examples/22heavilyformatted.php
+++ b/Examples/22heavilyformatted.php
@@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/23sharedstyles.php b/Examples/23sharedstyles.php
index 744ccd2f..1a07cd47 100644
--- a/Examples/23sharedstyles.php
+++ b/Examples/23sharedstyles.php
@@ -36,7 +36,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/24readfilter.php b/Examples/24readfilter.php
index d5de002a..b51cc596 100644
--- a/Examples/24readfilter.php
+++ b/Examples/24readfilter.php
@@ -34,7 +34,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** PHPExcel_IOFactory */
-require_once '../Classes/PHPExcel/IOFactory.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
// Check prerequisites
diff --git a/Examples/25inmemoryimage.php b/Examples/25inmemoryimage.php
index 5c363807..8d99e186 100644
--- a/Examples/25inmemoryimage.php
+++ b/Examples/25inmemoryimage.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/26utf8.php b/Examples/26utf8.php
index 67651ff2..08fd8511 100644
--- a/Examples/26utf8.php
+++ b/Examples/26utf8.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** 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
diff --git a/Examples/27imagesexcel5.php b/Examples/27imagesexcel5.php
index a2f55474..e8399618 100644
--- a/Examples/27imagesexcel5.php
+++ b/Examples/27imagesexcel5.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Read from Excel5 (.xls) template
diff --git a/Examples/28iterator.php b/Examples/28iterator.php
index f6783afa..d86e0207 100644
--- a/Examples/28iterator.php
+++ b/Examples/28iterator.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** PHPExcel_IOFactory */
-require_once '../Classes/PHPExcel/IOFactory.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
if (!file_exists("05featuredemo.xlsx")) {
diff --git a/Examples/29advancedvaluebinder.php b/Examples/29advancedvaluebinder.php
index 60831c06..5c3bd2c9 100644
--- a/Examples/29advancedvaluebinder.php
+++ b/Examples/29advancedvaluebinder.php
@@ -33,7 +33,7 @@ ini_set('display_startup_errors', TRUE);
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
/** PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Set timezone
diff --git a/Examples/30template.php b/Examples/30template.php
index 9480735b..62802ba4 100644
--- a/Examples/30template.php
+++ b/Examples/30template.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** PHPExcel_IOFactory */
-require_once '../Classes/PHPExcel/IOFactory.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
diff --git a/Examples/31docproperties_write-xls.php b/Examples/31docproperties_write-xls.php
index 1cdfbf59..f68dff5b 100644
--- a/Examples/31docproperties_write-xls.php
+++ b/Examples/31docproperties_write-xls.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$inputFileType = 'Excel5';
diff --git a/Examples/31docproperties_write.php b/Examples/31docproperties_write.php
index 1e3d87d1..6ca7631f 100644
--- a/Examples/31docproperties_write.php
+++ b/Examples/31docproperties_write.php
@@ -35,7 +35,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$inputFileType = 'Excel2007';
diff --git a/Examples/32chartreadwrite.php b/Examples/32chartreadwrite.php
index 3a4ee03f..0ecab8e0 100644
--- a/Examples/32chartreadwrite.php
+++ b/Examples/32chartreadwrite.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** Include path **/
-set_include_path(get_include_path() . PATH_SEPARATOR . '../Classes/');
+set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../Classes/');
/** PHPExcel_IOFactory */
include 'PHPExcel/IOFactory.php';
diff --git a/Examples/33chartcreate-area.php b/Examples/33chartcreate-area.php
index cb57240a..9a1e9c7f 100644
--- a/Examples/33chartcreate-area.php
+++ b/Examples/33chartcreate-area.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel();
diff --git a/Examples/33chartcreate-bar-stacked.php b/Examples/33chartcreate-bar-stacked.php
index f4ad142a..cca6f684 100644
--- a/Examples/33chartcreate-bar-stacked.php
+++ b/Examples/33chartcreate-bar-stacked.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel();
diff --git a/Examples/33chartcreate-bar.php b/Examples/33chartcreate-bar.php
index 3b86def9..d7344eec 100644
--- a/Examples/33chartcreate-bar.php
+++ b/Examples/33chartcreate-bar.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel();
diff --git a/Examples/33chartcreate-column-2.php b/Examples/33chartcreate-column-2.php
index 424a8f61..18f90bf2 100644
--- a/Examples/33chartcreate-column-2.php
+++ b/Examples/33chartcreate-column-2.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel();
diff --git a/Examples/33chartcreate-column.php b/Examples/33chartcreate-column.php
index 4d6c8856..caa5b812 100644
--- a/Examples/33chartcreate-column.php
+++ b/Examples/33chartcreate-column.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel();
diff --git a/Examples/33chartcreate-composite.php b/Examples/33chartcreate-composite.php
index 70d3f304..497e2b9a 100644
--- a/Examples/33chartcreate-composite.php
+++ b/Examples/33chartcreate-composite.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel();
diff --git a/Examples/33chartcreate-line.php b/Examples/33chartcreate-line.php
index 5a41afc2..3e9ec767 100644
--- a/Examples/33chartcreate-line.php
+++ b/Examples/33chartcreate-line.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel();
diff --git a/Examples/33chartcreate-multiple-charts.php b/Examples/33chartcreate-multiple-charts.php
index 545d4792..ee45f0a2 100644
--- a/Examples/33chartcreate-multiple-charts.php
+++ b/Examples/33chartcreate-multiple-charts.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel();
diff --git a/Examples/33chartcreate-pie.php b/Examples/33chartcreate-pie.php
index 6b62249a..62360c4f 100644
--- a/Examples/33chartcreate-pie.php
+++ b/Examples/33chartcreate-pie.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel();
diff --git a/Examples/33chartcreate-radar.php b/Examples/33chartcreate-radar.php
index 1e044e95..179dec0e 100644
--- a/Examples/33chartcreate-radar.php
+++ b/Examples/33chartcreate-radar.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel();
diff --git a/Examples/33chartcreate-scatter.php b/Examples/33chartcreate-scatter.php
index eab9b4c6..467d6015 100644
--- a/Examples/33chartcreate-scatter.php
+++ b/Examples/33chartcreate-scatter.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel();
diff --git a/Examples/35chartrender.php b/Examples/35chartrender.php
index 7660da8f..7d6e3caf 100644
--- a/Examples/35chartrender.php
+++ b/Examples/35chartrender.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** Include path **/
-set_include_path(get_include_path() . PATH_SEPARATOR . '../Classes/');
+set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../Classes/');
/** PHPExcel_IOFactory */
include 'PHPExcel/IOFactory.php';
diff --git a/Examples/36chartreadwriteHTML.php b/Examples/36chartreadwriteHTML.php
index afb00d01..6811c274 100644
--- a/Examples/36chartreadwriteHTML.php
+++ b/Examples/36chartreadwriteHTML.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** Include path **/
-set_include_path(get_include_path() . PATH_SEPARATOR . '../Classes/');
+set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../Classes/');
/** PHPExcel_IOFactory */
include 'PHPExcel/IOFactory.php';
diff --git a/Examples/36chartreadwritePDF.php b/Examples/36chartreadwritePDF.php
index 554c5b13..a3517f39 100644
--- a/Examples/36chartreadwritePDF.php
+++ b/Examples/36chartreadwritePDF.php
@@ -37,7 +37,7 @@ date_default_timezone_set('Europe/London');
*/
/** Include path **/
-set_include_path(get_include_path() . PATH_SEPARATOR . '../Classes/');
+set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../Classes/');
/** PHPExcel_IOFactory */
include 'PHPExcel/IOFactory.php';
diff --git a/Examples/37page_layout_view.php b/Examples/37page_layout_view.php
index 4db30a0f..042e8e85 100644
--- a/Examples/37page_layout_view.php
+++ b/Examples/37page_layout_view.php
@@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/38cloneWorksheet.php b/Examples/38cloneWorksheet.php
index d8e141c1..d2f9a6d4 100644
--- a/Examples/38cloneWorksheet.php
+++ b/Examples/38cloneWorksheet.php
@@ -34,7 +34,7 @@ date_default_timezone_set('Europe/London');
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
// Create new PHPExcel object
diff --git a/Examples/40duplicateStyle.php b/Examples/40duplicateStyle.php
index 52891ad4..be31951a 100644
--- a/Examples/40duplicateStyle.php
+++ b/Examples/40duplicateStyle.php
@@ -10,7 +10,7 @@ define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '
');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
-require_once '../Classes/PHPExcel.php';
+require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
echo date('H:i:s') , " Create new PHPExcel object" , EOL;
$objPHPExcel = new PHPExcel();
diff --git a/Examples/Excel2003XMLReader.php b/Examples/Excel2003XMLReader.php
index 0955c6fb..96ee5a3f 100644
--- a/Examples/Excel2003XMLReader.php
+++ b/Examples/Excel2003XMLReader.php
@@ -31,7 +31,7 @@ error_reporting(E_ALL);
date_default_timezone_set('Europe/London');
/** 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;
diff --git a/Examples/GnumericReader.php b/Examples/GnumericReader.php
index c79f1899..4304cccc 100644
--- a/Examples/GnumericReader.php
+++ b/Examples/GnumericReader.php
@@ -31,7 +31,7 @@ error_reporting(E_ALL);
date_default_timezone_set('Europe/London');
/** 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;
$callStartTime = microtime(true);
diff --git a/Examples/OOCalcReader.php b/Examples/OOCalcReader.php
index a5e6d350..237d1246 100644
--- a/Examples/OOCalcReader.php
+++ b/Examples/OOCalcReader.php
@@ -31,7 +31,7 @@ error_reporting(E_ALL);
date_default_timezone_set('Europe/London');
/** 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;
$callStartTime = microtime(true);
diff --git a/Examples/Quadratic.php b/Examples/Quadratic.php
index ce4191a2..11a712e5 100644
--- a/Examples/Quadratic.php
+++ b/Examples/Quadratic.php
@@ -9,7 +9,7 @@
error_reporting(E_ALL);
/** Include path **/
-set_include_path(get_include_path() . PATH_SEPARATOR . '../Classes/');
+set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/../Classes/');
?>