Re: [SMARTY] Re: new user install problem
| From: | M Mohr | Date: | Thu, 06 Feb 2003 17:05:58 +0000 |
| Subject: | Re: [SMARTY] Re: new user install problem | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7555@lists.php.net to get a copy of this message | ||
On Thu, Feb 06, 2003 at 10:57:31AM -0600, Monte Ohrt wrote:
> 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.
Or set the include_path correctly in php.ini or httpd.conf or .htaccess .
unfortunately this is not an option on most shared web-hosts.
regards
messju