Re: mod_rewrite and include paths

From: Date: Sun, 13 Nov 2005 23:06:06 +0000
Subject: Re: mod_rewrite and include paths
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-225710@lists.php.net to get a copy of this message
On 13 Nov 2005, at 22:15, Marco Kaiser wrote:
try to use realpath, dirname and other related funktion to resolv the real path. dirname(__FILE__) ?
Good point (you can tell I've been up too long). I've just had a play with that - I appended the current path to my include_path, but it seems it's not inherited, so sub-includes are not found. I also tried chdir(dirname(__FILE__)) which had the same results and interferes with the operation of require_once (the same file found by a different path doesn't get counted as the same file). Incidentally doing just 'echo getcwd();' seems to fail completely when called via a rewrite. After all that, smarty still can't find its templates_c for some reason. I'm sure there must be something simple and elegant I'm missing. Probably a good night's sleep. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk

« previous php.general (#225710) next »