Re: [SMARTY] distributing scripts that use Smarty

From: Date: Tue, 20 Aug 2002 07:22:11 +0000
Subject: Re: [SMARTY] distributing scripts that use Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5769@lists.php.net to get a copy of this message
On Mon, 19 Aug 2002 17:14:15 +0200 michel v <m@tidakada.com> wrote: > hi, > > I plan to use Smarty in a news script, but when I upload my work on the > server (after testing Smarty on my local server), it tells me it can't > include files from the cache until I just upload my local cache and > chmod it 777. So I'm scared that it could happen with users of the script. > How could I avoid that ? Would clear_all_cache() (see previous message > in the mailing list) help ? You can try to use another method. Apply chmod 0777 command for parent dir where 'cache' and 'templates_c' dirs are planned. Then use php script to create 'cache' and 'templates_c' dirs. They will have 'httpd' as owner and write permissions for it. Now you can restore original permissions for parent dir. As a result you will get a dirs where php and smarty can write/create/delete files and dirs without problems. Maybe this can help. -- Sincerely yours, Grigory V. Kareev, Lead developer RRF.ru development group

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