Javascript-форум (https://javascript.ru/forum/)
-   Firefox/Mozilla (https://javascript.ru/forum/css-html-firefox-mizilla/)
-   -   header в мозиле (https://javascript.ru/forum/css-html-firefox-mizilla/16862-header-v-mozile.html)

lukingnu 25.04.2011 20:29

header в мозиле
 
Скрипт
<?php
  ob_start();
  header('Content-Type: text/plain; charset=windows-1251');
 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
  header('Cache-Control: no-store, no-cache, must-revalidate');
  header('Cache-Control: post-check=0, pre-check=0', FALSE);
  header('Pragma: no-cache');

  echo("<p>Привет</p>");
?>

в мозилле выводит <p>Привет</p> Хотя должен выводит просто Привет
Почему?

poorking 25.04.2011 20:34

Может потому что Content-Type не тот? Укажите text/html

lukingnu 26.04.2011 13:20

Большое спасибо


Часовой пояс GMT +3, время: 08:02.