Dennis Gearon wrote: > CSS sheets have to be in the document root somewhere, don't they? > > I'm trying to move as much, or at least what I consider security > related, from the phpnuke in the document root to a directory outside of > the document root.
In our experience it's better to just have the HTML pages link to the style sheet files, and keep them in a directory that is publicly accessible. If your CSS files are large, you'll notice a reduction in bandwidth because most browsers will do another request, get a 304 from the server, and not have to download anything else. Same goes for javascript ".js" files. I noticed a site the other day that was over 80k to download. 38k was javascript and stylesheet stuff that was being reloaded on every page request. Bandwidth reduction by 50% wouldn't have been hard for them. Granted most people aren't worried about bandwidth costs, but a 50% reduction is page loading speed is something more people seem to notice. Michael Kimsal http://www.logicreate.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php