|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
smartymoon Smarty Rookie
Joined: 29 Apr 2003 Posts: 15
|
Posted: Sun Aug 22, 2004 3:00 am Post subject: don't delete 'index.html' |
|
|
I need following variables.
files_kept_in_cache and files_kept_in_template_compiled
to prevent index.html from deleting when we clear the cache or templates_compiled folder.
As you know, we keep the file 'index.html' for disabling the listing of the folder.
But when we clear the cache or template_compiled folder, it clears all the files in the folder.
We may keep in the above array the file names which are not to be deleted
so that the smarty class will not delete the files in the above array.
thanks
s moon |
|
Back to top |
|
Ceph Smarty Rookie
Joined: 25 Nov 2003 Posts: 24
|
Posted: Thu Oct 21, 2004 10:43 pm Post subject: |
|
|
You can disable directory listings via Apache inside an .htaccess file inside your templates_c folder:
Options -Indexes
and viola, no more directory listings. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Oct 22, 2004 3:30 am Post subject: |
|
|
Your cache and compile files shouldn't be in the document root of your web server, and even if you really want them there (?) they should at least be in a subdirectory of their own. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|