On Fri, 2003-06-27 at 21:02, Brian V Bonini wrote: > 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.
The problem turned out to be that having default_mimetype text/css set in php.ini seemed to be overriding any attempt I made to set the mime type 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. In either case I don't think you can get any more PHP related then that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php