|
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 |
Bruce Smarty n00b
Joined: 20 Oct 2003 Posts: 2
|
Posted: Mon Oct 20, 2003 4:11 pm Post subject: Smarty under IIS and Windows XP |
|
|
Hello, I want to use Smarty under windows XP with IIS, but I get this problem :
Code: | Warning: Smarty error: problem creating directory "C:/Inetpub/wwwroot/mywebsite/templates_c/\%%183\%%1836865061" in c:\inetpub\wwwroot\mywebsite\libs\Smarty.class.php on line 1042 |
I've created a directory inside the Inetpub drawer, this will be the base for my website.
Inside it I've copied the "libs" drawer from Smarty.
I've created the templates and templates_c drawers too.
Here is the sample script I use :
Code: | <?
require 'libs/Smarty.class.php';
$smarty = new Smarty;
$smarty->template_dir = 'C:/Inetpub/wwwroot/mywebsite/templates/';
$smarty->compile_dir = 'C:/Inetpub/wwwroot/mywebsite/templates_c/';
$smarty->cache_dir = 'C:/Inetpub/wwwroot/mywebsite/cache/';
$smarty->compile_check = true;
$smarty->debugging = false;
$smarty->force_compile = true;
$smarty->display('test.tpl');
?> |
And when I open the page, I get the error above...
Where I'm I wrong ?
edit : And yes I've searched through the FAQ, guide and forum but didn't found any answer... |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Oct 20, 2003 5:07 pm Post subject: |
|
|
i don't know XP, but does your webserver have write-permissions in
"C:/Inetpub/wwwroot/mywebsite/templates_c/" ? |
|
Back to top |
|
Bruce Smarty n00b
Joined: 20 Oct 2003 Posts: 2
|
Posted: Mon Oct 20, 2003 6:39 pm Post subject: |
|
|
I tryed to do so but... well... hum... it's IIS you know
Well I found a "work around", I've moved the template_c drawer to the parent directory (outside my website then) and it works... No wonder why !
Hopefully the website will be hosted under 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
|