Re: [SMARTY] Re: new user install problem
| From: | Monte Ohrt | Date: | Thu, 06 Feb 2003 16:57:31 +0000 |
| Subject: | Re: [SMARTY] Re: new user install problem | ||
| References: | 1 2 3 4 5 6 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7554@lists.php.net to get a copy of this message | ||
On Thu, 2003-02-06 at 10:43, Steve wrote:
> In article <1044548750.2182.26.camel@lena.ispi.prv>,
> monte@ispi.net (Monte Ohrt) wrote:
>
> > >
> > > > if everything else works fine, put an '@' before the call to
> > > > file_exists()
> > > > in line 2660. i think there was one in Smarty-2.3.1.
> > >
> > > Mmm.. yes, that does it! No idea exactly *what* it does.. but it works;)
> >
> > "@" just supresses the error message. Smarty must be looking for a file
> > in your include_path, and you have a path that is outside of your
> > open_basedir setting in php.ini.
>
> Thanks for clearing that up. So it would be better to really solve the
> problem to avoid possible future problems, I guess?
>
> If I understand it correctly setting the include_path to the smarty
> directory with ini_set() is the real solution. Can I add that in the
> Smarty.Class.php or should I do it in the application somehow?
>
I wouldn't touch the Smarty libs if at all possible, that just makes
upgrading more difficult. Do that in your application.