On Sat, 2003-06-28 at 00:59, electroteque wrote:
> why php ? why not just use a .css file like everyone else ?

Because I wanted to be able to generate dynamically generated styles.
And, while I realize I can just "include" the document in theory @import
should work exactly as expected.

The problem turned out to be that having default_mimetype text/html set
in php.ini seemed to be overriding any attempt I made to set the mime
type to text/css via the header function. I thought you are supposed to
be able to over ride the global configs via ini_set or that defining the
mime type via header() would over ride it on a per file basis but
apparently not or at least not for me... Still trying to figure out why,
but, it is working now..

> 
> -----Original Message-----
> From: Brian V Bonini [mailto:[EMAIL PROTECTED]
> Sent: Saturday, June 28, 2003 11:02 AM
> To: Leif K-Brooks
> Cc: PHP Lists
> Subject: Re: [PHP] @import
> 
> 
> On Fri, 2003-06-27 at 20:21, Leif K-Brooks wrote:
> > Brian V Bonini wrote:
> > 
> > >Can anyone make this work with Mozilla?
> > >
> > ><style type="text/css" xml:lang="en" lang="en">
> > >@import url("site.css.php");
> > ></style>
> > >
> > >No matter what I try , header("Content-type: text/css")
> > >or ini_set to will not output anything other then text/html
> > >
> > >
> > >  
> > >
> > This has nothing to do with PHP.
> 
> Actually, it does. The only reason it does not work is that I can not
> get php to output anything other then text/html for .php files so it
> fails because of this.... Mozilla needs to see a text/css mimetype
> for this instance of site.css.php in order to render it correctly.


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

Reply via email to