RE: [SMARTY] config absolute paths for windows

From: Date: Mon, 17 Jun 2002 13:23:11 +0000
Subject: RE: [SMARTY] config absolute paths for windows
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4899@lists.php.net to get a copy of this message
Make sure you either use / slashes like "c:/program files/.../smarty" or escape backslashes as they have a special meaning in PHP and other languages, ie. "c:\\program files\\smarty\\". -- Ferdinand Beyer <fbeyer@clickhand.de> On 17 Jun 2002 at 3:57, SP wrote: > Forget it I solved it by using $DOCUMENT_ROOT > > $smarty = new Smarty; > $smarty->template_dir = "$DOCUMENT_ROOT/cms/smarty/templates"; > $smarty->compile_dir = "$DOCUMENT_ROOT/cms/smarty/templates_c"; > $smarty->config_dir = "$DOCUMENT_ROOT/cms/smarty/configs"; > > > -----Original Message----- > From: SP [mailto:internetracer@yifan.net] > Sent: June 17, 2002 3:06 AM > To: smarty-general@lists.php.net > Subject: [SMARTY] config absolute paths for windows > > > i have smarty 2.1.1 on windows98. does anyone know how to config absolute > paths on windows server. i want to set it up with this absolute path but > it's not working: > > C:\Program Files\Apache Group\Apache\htdocs\cms\Smarty-2.1.1 > > i also tried with this but it's not working: > > http://127.0.0.1/cms/Smarty-2.1.1 > > this works below: > > $smarty = new Smarty; > $smarty->template_dir = "../../../htdocs/cms/Smarty-2.1.1/templates"; > $smarty->compile_dir = "../../../htdocs/cms/Smarty-2.1.1/templates_c"; > $smarty->config_dir = "../../../htdocs/cms/Smarty-2.1.1/configs"; > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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