Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Default content type?

It seems PHP defaults to content type text/html if not explicitly set otherwise. Is there a global setting for this somewhere?

Is there any documentation regarding this? I looked at http://php.net/manual/en/function.header.php and found no mention of a default or related settings.

like image 657
Eaten by a Grue Avatar asked Dec 14 '22 17:12

Eaten by a Grue


1 Answers

If you want to change the default you can edit the default mimetype in the php.ini.

like image 82
Robin Valk Avatar answered Dec 18 '22 10:12

Robin Valk