|
Posted by Andy Hassall on 06/28/05 23:03
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]
|