|
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 |
$0.05$ Smarty Rookie
Joined: 12 Nov 2003 Posts: 13
|
Posted: Thu Dec 25, 2003 5:15 am Post subject: strange installation problem??? |
|
|
Code: |
Warning: Smarty error: problem creating directory 'c:/inetpub/wwwroot/CMBA/templates_c/%%365/%%365872452' in c:\inetpub\wwwroot\CMBA\libs\Smarty.class.php on line 1143
Warning: Smarty error: problem writing temporary file 'templates_c\%%365\%%365872452\3fea6cf43b48f' in c:\inetpub\wwwroot\CMBA\libs\Smarty.class.php on line 1143
Warning: touch(): Unable to access templates_c\%%365\%%365872452\example.tpl.php in c:\inetpub\wwwroot\CMBA\libs\core\core.write_compiled_resource.php on line 31
Warning: fetch(templates_c\%%365\%%365872452\example.tpl.php): failed to open stream: No such file or directory in c:\inetpub\wwwroot\CMBA\libs\Smarty.class.php on line 1295
Warning: fetch(): Failed opening 'templates_c\%%365\%%365872452\example.tpl.php' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\CMBA\libs\Smarty.class.php on line 1295
|
im using a windows 2000 professional server, and IIS. What could be wrong?? |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Thu Dec 25, 2003 12:08 pm Post subject: |
|
|
maybe you have safe_mode enabled. if so set $smarty->use_sub_dirs to false. |
|
Back to top |
|
$0.05$ Smarty Rookie
Joined: 12 Nov 2003 Posts: 13
|
Posted: Thu Dec 25, 2003 8:56 pm Post subject: |
|
|
i did that, and i'm still getting this error:
Code: |
Warning: Smarty error: problem writing temporary file 'templates_c\3feb4e10dc68a' in c:\inetpub\wwwroot\CMBA\libs\Smarty.class.php on line 1143
Warning: touch(): Unable to create file templates_c\%%365^%%365872452^example.tpl.php because Permission denied in c:\inetpub\wwwroot\CMBA\libs\core\core.write_compiled_resource.php on line 31
Warning: fetch(templates_c\%%365^%%365872452^example.tpl.php): failed to open stream: No such file or directory in c:\inetpub\wwwroot\CMBA\libs\Smarty.class.php on line 1295
Warning: fetch(): Failed opening 'templates_c\%%365^%%365872452^example.tpl.php' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\CMBA\libs\Smarty.class.php on line 1295
|
here's my code:
Code: |
require('libs/Smarty.class.php');
if (empty($_GET['year']) || empty($_GET['month']) || empty($_GET['day'])) {
$today = getdate();
$year = $today['year'];
$month = $today['mon'];
$day = $today['mday'];
} else {
$year = $_GET['year'];
$month = $_GET['month'];
$day = $_GET['day'];
}
$smarty = new Smarty;
$smarty->use_sub_dirs=false;
$smarty->assign('year', $year);
$smarty->assign('month', $month);
$smarty->assign('day', $day);
$smarty->assign('url_format', '?year=%Y&month=%m&day=%d');
$smarty->display('example.tpl');
|
|
|
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
|