Re: Re: mime type
| From: | Brian V Bonini | Date: | Fri, 27 Jun 2003 17:36:28 +0000 |
| Subject: | Re: Re: mime type | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153179@lists.php.net to get a copy of this message | ||
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
> >