|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
joo Smarty Rookie
Joined: 24 Oct 2003 Posts: 11 Location: Moscow, Russia
|
Posted: Fri Oct 24, 2003 7:49 am Post subject: problem creating directory - absolute pathes don't work |
|
|
When I setup a directories with relative pathes, it works OK:
[php:1:71fe3f4147]
$this->compile_dir = "templates_c/";
[/php:1:71fe3f4147]
But when I try to set an absolute path, it not works:
[php:1:71fe3f4147]
$this->compile_dir = ''/home/site.ru/tmp/templates_c/";
[/php:1:71fe3f4147]
...with error like this:
WARNING [Smarty.class.php:589] Smarty error: problem creating directory "/home/site.ru/tmp/templates_c//%%179/%%1798044067"WARNING [Smarty.class.php:589] Smarty error: problem writing '/home/site.ru/tmp/templates_c//%%179/%%1798044067/test.htm.php.'UNKNOWN [Smarty.class.php:968] touch() [function.touch]: Unable to create file /home/site.ru/tmp/templates_c//%%179/%%1798044067/test.htm.php because No such file or directoryUNKNOWN [Smarty.class.php:686] fetch(/home/u11468/site.ru/tmp/templates_c//%%179/%%1798044067/test.htm.php) [function.fetch]: failed to create stream: No such file or directoryUNKNOWN [Smarty.class.php:686] fetch() [function.fetch]: Failed opening '/home/site.ru/tmp/templates_c//%%179/%%1798044067/test.htm.php' for inclusion (include_path='.:')
I spent a lot of time on this problem, and I think Smarty try to interpret my absolute path like relative path... I don't see another reasons.
I have no more ideas, because I was try ALL and check ALL - with trailing slash, without trailing slash, try to create 'template_c' folder in different places and so on.
Directory is writeable (777), of course.
Smarty 2.5.0
PHP 4.3 (Safe mode is OFF)
FreeBSD 4-STABLE #1
Apache |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|