Re: [SMARTY] safe_mode trouble

From: Date: Wed, 09 Oct 2002 13:44:07 +0000
Subject: Re: [SMARTY] safe_mode trouble
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6105@lists.php.net to get a copy of this message
From the Smarty.class.php file: var $use_sub_dirs = true; // use sub dirs for cache and compiled files? // sub directories are more efficient, but // you can set this to false if your PHP environment // does not allow the creation of them. Setting this to false might help. Example: // Template object... require_once('Smarty/2.3.0/Smarty.class.php'); class Smarty_Extension extends Smarty { function Smarty_Extension() { global $path_to_website; parent::Smarty(); $this->template_dir = $path_to_website . '/templates'; $this->compile_dir = $path_to_website . '/templates_c'; $this->config_dir = ''; $this->plugins_dir = Array('plugins', '../plugins'); $this->use_sub_dirs = FALSE; } } $smarty = new Smarty_Extension; For more info also try the mailinglist archive Greetings, Jan Rosier * "People who feel good about themselves, produce good results - Submitted by Dan Kelly and all his friends Illinois" * ----- Original Message ----- From: "Thomas Pilgaard Nielsen" <ascii@microcore.dk> To: <smarty-general@lists.php.net> Sent: Wednesday, October 09, 2002 3:22 PM Subject: [SMARTY] safe_mode trouble > Hi list, > > first off, let me take the time in this first post to express to the > authors how much their work is appreciated: Smarty conveniently fills > the lacks and shortcomings I've wanted xslt so much to do. Thankyou very > much. > > As a newcomber to Smarty I have a bit of trouble getting it running. My > ISP runs in safe_mode, which according to a comment in the php-manual > (http://dk.php.net/manual/sk/printwn/features.safe-mode.php) means that: > > "creating a directory in safe mode is usually a bad idea since the UID > will be different from the script (it will be the apache UID) so it > won't be possible to do anything with the files created on this directory". > > This ofcourse amounts to Smarty not being able to make use of compiled > templates. > > Is there any way to circumvent this? I'm at a complete loss here. My ISP > is pretty restrictive which means that I haven't got access to neither > php.ini nor apache conf. > > Any help will be greatly appreciated. > > Thanks in advance, > > Thomas Pilgaard > > > -- > There are 10 types of people in the world: > Those who understand binary and those who don't. > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.smarty.general (#6105) next »