Re: [SMARTY-DEV] Smarty and open_basedir
| From: | Monte Ohrt | Date: | Fri, 20 Dec 2002 17:35:45 +0000 |
| Subject: | Re: [SMARTY-DEV] Smarty and open_basedir | ||
| References: | 1 2 3 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-470@lists.php.net to get a copy of this message | ||
Smarty doesn't try to fail what should normally work AFAIK. Can you
setup a test script and give me the pertinant php.ini settings?
You could also try $use_sub_dirs = false, see if that helps any.
On Fri, 2002-12-20 at 11:18, Garland Foster wrote:
> I'm using 2.3.1...
>
> ----- Original Message -----
> From: "Monte Ohrt" <monte@ispi.net>
> To: <garland_foster@salutia.com>
> Cc: "Smarty Dev" <smarty-dev@lists.php.net>
> Sent: Friday, December 20, 2002 2:10 PM
> Subject: Re: [SMARTY-DEV] Smarty and open_basedir
>
>
> > What version of Smarty are you using? I thought this was fixed in 2.3.1.
> >
> > On Fri, 2002-12-20 at 07:51, garland_foster@salutia.com wrote:
> > > Hi people,
> > >
> > > A user was having a problem with our application, Smarty was complaining
> > > about ot being able to write "%4386/%836823/foo.tpl.php" (Problem
> writing...)
> > > I debugged and found that the directories where not being created at
> > > _write_file by the _create_dirs_structure (or so..) function.
> > > Why? Because the hosting company had open_basedir configured to "." so
> > > Smarty wasn't finding a match.
> > > My questions are:
> > >
> > > a)Why does Smarty care about open_basedir isn't it a PHP-level problem?
> > > I mean if other PHP applications CAN create a file/dir why do we make
> > > Smarty fail? Our user was puzzled because all the permissions where ok
> and
> > > he was able to create the file that Smarty couldn't from a stub php
> script.
> > > b)Is the "." value for open_basedir a right value? Why?
> > > c)If Smarty fails to create directories why are we getting the error
> when
> > > trying to create the file for the compiled template when it is obvious
> > > that the function will not work if the directories to-be-created weren't
> > > created?
> > >
> > > If this was already discussed my sincere apologies.
> > >
> > > Thanks for your answers!!
> > --
> > Monte Ohrt <monte@ispi.net>
> >
> >
> > --
> > Smarty Development Mailing List (http://smarty.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
--
Monte Ohrt <monte@ispi.net>