Forum Moderators: coopster

Message Too Old, No Replies

How to import on my web site file like stylesheet.css?

         

toplisek

11:15 am on Aug 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I would like to do import on my web site file like stylesheet.css
with code like
<style type="text/css">@import url(css/stylesheet.css);</style>

How to do it with PHP and it will be secure this file? Not visible but values will be read by web site.

Need help

Habtom

11:21 am on Aug 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How to do it with PHP and it will be secure this file?

No, it won't be secure, just because it is included by PHP file. If you want to prohibit direct access to the CSS file go one step above your www folder in the public_html and include it in the html by providing the correct path.

To include the file from root, you might use the following:

../css_file.css

There could be better ways of doing it, but this is what I can think of for now.

Habtom

d40sithui

11:21 am on Aug 22, 2007 (gmt 0)

10+ Year Member



what kind of file do you want to import?