Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty under IIS and Windows XP

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
Bruce
Smarty n00b


Joined: 20 Oct 2003
Posts: 2

PostPosted: Mon Oct 20, 2003 4:11 pm    Post subject: Smarty under IIS and Windows XP Reply with quote

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... Sad
Back to top
View user's profile Send private message Send e-mail
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Mon Oct 20, 2003 5:07 pm    Post subject: Reply with quote

i don't know XP, but does your webserver have write-permissions in
"C:/Inetpub/wwwroot/mywebsite/templates_c/" ?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bruce
Smarty n00b


Joined: 20 Oct 2003
Posts: 2

PostPosted: Mon Oct 20, 2003 6:39 pm    Post subject: Reply with quote

I tryed to do so but... well... hum... it's IIS you know Wink

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 Wink
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP