You are here: Re: Trouble Installing Smarty could really do with some help « PHP Programming Language « IT news, forums, messages
Re: Trouble Installing Smarty could really do with some help

Posted by M on 06/29/05 19:40

Yep that di the trick!

Many Thanks.

Martin

"Andy Hassall" <andy@andyh.co.uk> wrote in message
news:l2b3c110v0kk3jdljhqqssljg7687ku7d5@4ax.com...
> On Tue, 28 Jun 2005 18:54:48 GMT, "M"
> <ihatespam.0.a101888@spamgourmet.com>
> wrote:
>
>> I am trying to install Smarty using PHP 5 on a Windows XP PC using IIS
>>v6
>>
>><?php
>>require('Smarty.class.php');
>>$smarty = new Smarty;
>>
>>$smarty->template_dir = '/Program
>>Files/PhpIncludes/Smarty-2.6.9/demo/templates';
>
> Using directory names with spaces in is a recipe for pain and annoyance,
> if
> not outright disaster. I'd recommend moving everything into a directory
> without
> spaces in it.
>
> Might not be the cause of your problem but you'll likely avoid headaches
> later.
>
>>$smarty->compile_dir = '/Program
>>Files/PhpIncludes/Smarty-2.6.9/demo/templates_c';
>>$smarty->config_dir = '/Program
>>Files/PhpIncludes/Smarty-2.6.9/demo/configs/';
>>$smarty->cache_dir = '/Program
>>Files/PhpIncludes/Smarty-2.6.9/demo/cache/';
>>
>>Gives the following error:
>>
>>Warning: Smarty::fetch(/Program
>>Files/PhpIncludes/Smarty-2.6.9/demo/templates_c\%%93^934^9348F8B7%%index2.tpl.php)
>>[function.fetch]: failed to open stream: No such file or directory in
>>C:\Program Files\PhpIncludes\Smarty-2.6.9\libs\Smarty.class.php on line
>>1251
>
> OK, obvious question first, does the directory given exist?
> Does the filename referenced exist?
>
>>Any Ideas please?
>
> Next on the list is checking permissions, since Smarty needs to write to
> the
> template_c directory - have permissions been loosened sufficiently? (If I
> remember correctly, for IIS it's the IUSR_<machinename> account needs
> write
> access to the directory). Same again for the cache directory, too.
>
> --
> Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
> <http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool

 

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

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