Re: [SMARTY] safe mode

From: Date: Sun, 05 May 2002 15:19:34 +0000
Subject: Re: [SMARTY] safe mode
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4059@lists.php.net to get a copy of this message
G> Is there any way to work around safe mode restrictions on shared G> servers where root access (and editing php.ini or http.conf) isn't G> available? Smarty can create the directories in templates_c, but G> not dirs/files in them. These dirs can't be chmod'd by the user G> either since they're owned by the web server. Most shared servers G> I've dealt with enable safe mode - does Smarty work at all in those G> environments? Would php's open_basedir directive help in this G> situation (which would still require getting root to edit php.ini)? I had the same problem a while ago, and someone sent me this class, that makes smarty work without subdirectories. It was with a quite old version of Smarty, so I am NOT SURE AT ALL that it still works with the latest versions. Just include that file instead of Smarty.class.php, and instanciate this class instead of Smarty. It worked on my host which is running on safe mode. Hope it helps. Bertrand

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