I use several path constants and will the full url/path to whatever directory I use. I set it up in the config directory, and set all the paths you will be using throughout the script, ie:
PHP Code:
define ('DS', DIRECTORY_SEPARATOR);
define ('ROOT_PATH', dirname(__FILE__) . DS);
define ('BASE_URL', URL . $_SERVER['SCRIPT_NAME']);
define('CONTROLLERS', ROOT_PATH . 'controllers' . DS);
define('MODELS', ROOT_PATH . 'models' . DS);
define('VIEWS', ROOT_PATH . 'views' . DS);
define('IMAGES', ROOT_PATH . 'images' . DS);
(DIRECTORY_SEPARATOR is a pre-defined constant in PHP). Not only does this make it easier for you to code with, it makes it a quick change if you move directories.