Re[2]: [SMARTY] DirSepation bug
| From: | Daniil Kaltchenko | Date: | Mon, 22 Apr 2002 19:15:40 +0000 |
| Subject: | Re[2]: [SMARTY] DirSepation bug | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3838@lists.php.net to get a copy of this message | ||
Andreas,
Thanks it work. But I think, what this problem need solve in smarty:
need autodetect OS, and set SMARTY_DIR with drive letter and correct
slashes if SMARTY_DIR is not define.
Greeting,
Daniil.
Monday, April 22, 2002, 12:29:23 AM, you wrote:
AH> I'm not sure, but it should work if you just put the
AH> drive letter first in your URL's like this:
AH> define('SMARTY_DIR', 'g:/inetpub/wwwroot/smarty/');
AH> require_once(SMARTY_DIR . 'Smarty.class.php');
AH> $smarty = new Smarty;
AH> $smarty->compile_dir = SMARTY_DIR . 'templates_c'; $smarty->cache_dir =
AH> SMARTY_DIR . 'cache';
AH> or whatever path you're using, try put the drive letter in front.
AH> Andreas
AH> -----Ursprungligt meddelande-----
AH> Från: Daniil Kaltchenko [mailto:dak15@zmail.ru]
AH> Skickat: den 21 april 2002 14:19
AH> Till: smarty-general@lists.php.net
AH> Ämne: [SMARTY] DirSepation bug
AH> Hi!
AH> Friday, April 19, 2002, 6:15:47 PM, you wrote:
AZ>> On Fri, 19 Apr 2002, Gabor Hojtsy wrote:
>>> IIS Does not like C:\Inetpub\.../_smarty/templates_c/117/1172603085
>>> But it's fine with C:\Inetpub\...\_smarty\templates_c\117\1172603085
>>> So the guy would like to ask for a $_separator property for
>>> Smarty to specify which slash to use for path values...
AZ>> This has been fixed for the next release.
AH> Andrei, please fix this bug! I use smarty in Windows Xp with PHP
AH> 4.1.2 and Apache 1.3.20(win 32) and want upgrade my version of smarty
AH> to version 2.0.1, but this annoying bug does it impossible and impede
AH> my development. I get the last version from CVS, but it's while not
AH> fixed.
AH> Smarty compile templates, but can not show:
AH> ---
AH> Error: [2] Failed opening
AH> '/home/.../smarty/templates_c\301\301668621\0.php' for inclusion
AH> (include_path='.;home/.../bin')
AH> The error occurred in line 637 of file
AH> "g:\home\...\smarty\bin\Smarty.class.php"
AH> ---
AH> Daniil