You are here: Re: smarty template - unable to write to $compile_dir « PHP Programming Language « IT news, forums, messages
Re: smarty template - unable to write to $compile_dir

Posted by Janwillem Borleffs on 01/04/06 03:34

cshih16@yahoo.com wrote:
> my php file contains:
> $smarty->template_dir = BASE_DIR.'templates/';
> $smarty->compile_dir = BASE_DIR.'templates_c/';
>
> but still get error: unable to write to $compile_dir
> '/home/templates_c'. Be sure $compile_dir is writable by the web
> server user
>
> what goes wrong? how to fix?
>

The permissions are incorrect; modify to 777 to fix:

$ chmod 777 templates_c

Also, see the Smarty README and INSTALL files when provided.


JW

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация