Re: Fwd: Config Smarty bug?

From: Date: Thu, 28 Jun 2001 07:34:40 +0000
Subject: Re: Fwd: Config Smarty bug?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1030@lists.php.net to get a copy of this message
Tomas Sanchez Romani wrote: > Hi Smarty's and Lando! I've been using smarty on an windows (98 and > 2000pro) for a month or so and I have allways been forced to name the > template-dir (and others) as absolute pathnames. for example: var > $template_dir = 'c:/apache/htdocs/smarty/templates'; // name > of directory for templates > var $compile_dir = 'c:/apache/htdocs/smarty/templates_c'; > // name of directory for compiled templates > var $config_dir = 'c:/apache/htdocs/smarty/configs'; > // directory where config files are located I haven't seen this as a > bug in Smarty or PHP but rather as a bug in windows ;) regards, tomas I don't have the detailed solution available where I am right now... BUT - normally I use a Win2k machine, and I also had trouble with directories. I wanted to put a central copy of Smarty in a separate directory, and tried to put it in the include path. Similar problems. There seems to be a bug in the PHP handling of the include path (in php.ini), Windows version. Leaving it blank works just fine for "local" stuff, everything in the current directory and below is found. Specifying "." for the current directory doesn't work, I had to write something more, maybe something such as "/." , "./"or ... So, in order to run things in the include path under Windows I had to put the following in php.ini: - "." for current directory - "something more" also for current directory - other directories I wanted included. /Anders Janson

« previous php.smarty.general (#1030) next »