|
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 |
Angel Smarty n00b
Joined: 12 Aug 2003 Posts: 3
|
Posted: Tue Aug 12, 2003 6:03 pm Post subject: Smarty error: problem writing temporary file |
|
|
Code: | Warning: Smarty error: problem writing temporary file '/web/www.my_server.dk/www/smarty_test/templates_c/_smarty_cached_paths/3f392aa56b6d9' in /web/www.my_server.dk/www/smarty_test/libs/Smarty.class.php on line 1156
Warning: SAFE MODE Restriction in effect. The script whose uid is 671 is not allowed to access /web/www.my_server.dk/www/smarty_test/templates_c/_smarty_cached_paths owned by uid 502 in /web/www.my_server.dk/www/smarty_test/libs/core/core.write_compiled_resource.php on line 31
Warning: Smarty error: problem writing temporary file '/web/www.my_server.dk/www/smarty_test/templates_c/%%117/%%1172603085/3f392aa57530d' in /web/www.my_server.dk/www/smarty_test/libs/Smarty.class.php on line 1156
Warning: SAFE MODE Restriction in effect. The script whose uid is 671 is not allowed to access /web/www.my_server.dk/www/smarty_test/templates_c/%%117 owned by uid 502 in /web/www.my_server.dk/www/smarty_test/libs/core/core.write_compiled_resource.php on line 31
Warning: Unable to access /web/www.my_server.dk/www/smarty_test/templates_c/%%117/%%1172603085/index.tpl.php in /web/www.my_server.dk/www/smarty_test/libs/Smarty.class.php on line 1323
Warning: Failed opening '/web/www.psycotics.dk/www/smarty_test/templates_c/%%117/%%1172603085/index.tpl.php' for inclusion (include_path='.:/usr/local/lib/php') in /web/www.psycotics.dk/www/smarty_test/libs/Smarty.class.php on line 1323 |
here is my index.tpl:
Code: | {* Smarty *}
Hello, {$name}! |
and my index.php:
Code: | <?
define('SMARTY_DIR','/web/www.my_server.dk/www/smarty_test/libs/');
require(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty;
$smarty = new Smarty;
$$smarty->use_sub_dirs=false;
$smarty->template_dir = '/web/www.my_server.dk/www/smarty_test/templates/';
$smarty->compile_dir = '/web/www.my_server.dk/www/smarty_test/templates_c';
$smarty->config_dir = '/web/www.my_server.dk/www/smarty_test/configs/';
$smarty->cache_dir = '/web/www.my_server.dk/www/smarty_test/cache/';
$smarty->assign('name','Martin');
$smarty->display('index.tpl');
?> |
the path's seems to be correct, I checked with getcwd(); - what am I doing wrong?
Last edited by Angel on Wed May 05, 2010 10:52 pm; edited 1 time in total |
|
Back to top |
|
Angel Smarty n00b
Joined: 12 Aug 2003 Posts: 3
|
|
Back to top |
|
Angel Smarty n00b
Joined: 12 Aug 2003 Posts: 3
|
|
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
|