[PHP] Re: css sheets in designs

2002-05-13 Thread Michael Kimsal

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




[PHP] Re: css sheets in designs

2002-05-13 Thread Gary



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.
 

style sheets works the same as any other language that you can link to 
your document.

link rel=stylesheet href=full/path/to/something.csstype=text/css /

HTH
gary


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php