note 11356 deleted from function.include by sniper

From: Date: Wed, 29 Jan 2003 04:04:40 +0000
Subject: note 11356 deleted from function.include by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-42974@lists.php.net to get a copy of this message
if you have a setup like me: global_server_php_include_path/php_modules/... local_web_site_php_include_path/something... local_web_site/... and you want to include a module that might include a template file that belongs to it, eg is in the same subfolder representing the module. There is a problem in reading this template file because you don't know where you are (absolute file path) and you don't want to set a global parameter on ever local website that says where your global php folder is. A workaround for this problem could be the following: $path = dirname(__FILE__); this will get the path where the file is laying that is getting processed at the moment (eg your global module handler). Hope that helps Tim

« previous php.notes (#42974) next »