RE: [PHP] Re: mime type
| From: | Brian V Bonini | Date: | Fri, 27 Jun 2003 19:36:23 +0000 |
| Subject: | RE: [PHP] Re: mime type | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153199@lists.php.net to get a copy of this message | ||
On Fri, 2003-06-27 at 13:47, Carl Furst wrote:
> I doubt this is the problem, but perhaps your webserver is messing with your
> mime-types by printing a default header for some reason.
>
If that were the case it would return text/plain but this is more like
not being able to override PHP's default mime-type of text/html in
php.ini I even tried setting it explicitly in Apache's mime config. but
still PHP insists on outputting text/html
Good thought though.. :)
>
> -----Original Message-----
> From: Brian V Bonini [mailto:b-bonini@cox.net]
> Sent: Friday, June 27, 2003 1:36 PM
> To: Pete Morganic
> Cc: PHP Lists
> Subject: Re: [PHP] Re: mime type
>
> On Fri, 2003-06-27 at 13:26, Pete Morganic wrote:
> > chech here
> > http://www.phpfreaks.com/mimetypes.php
> >
> > and in php add the folowing header
> >
> > header ("Content-type: model/vrml");
>
> As I had already stated I tried using header() and ini_set(), e.g.,
> header("Content-type: text/css") or
> ini_set('default_mimetype','text/css')
>
> But, it's not working, I'm still getting text/html as the default for
> *.php files as it should be according to php.ini but I need to override
> that for this one file and output text/css. Am I wrong in assuming
> either of these functions should override the global configs?
>
> >
> >
> > Brian V Bonini wrote:
> > > I want to get php to output text/css for one .php file. I tried using
> > > header() and ini_set () but seems no matter what I do the Content-type
> > > remains text/html
> > >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php