i want to include my css/stylesheet via php so that…
<link rel="stylesheet" href="http://www.mydomain.com/css/style.php">
so that i can than dynamicly change different stylesheets…. how can i do that
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As long as you set your MIME type in
style.phpto CSS, you should be in business. Add this to the very top:Another option if you’re running on an Apache server is to tell it to check .css files for PHP. Add this to your
.htaccessfile to do this:Then you could simply include a regular .css file: