I have a php environment on a windows 7 machine. I would like to add php include path. I run all my php apps from the following folder:
c:\wamp\www(followed by the folder of the of the app I am developing)
Please Assist, I am new to php and still have a lot to learn.
if(!defined(‘PHPWORD_BASE_PATH’)) {
define(‘PHPWORD_BASE_PATH’, dirname(FILE) . ‘/’);
require PHPWORD_BASE_PATH . ‘PHPWord/Autoloader.php’;
PHPWord_Autoloader::Register();
if your include file is in same folder you need to write as
if it is inner folder you need to use
if it is in one up folder you need to use