Mam dosyć dużą aplikację, która została tak zaprojektowana, że wszystkie headery wysyłam na samym początku, zbudowana o wzorzec MVC. Jakiś czas temu potrzebowałem kalendarz w JS i znalazłem pod adresem: http://www.kubiczek.biz/uploaded/datetimepicker.zip
Po dodaniu dwóch linijek aplikacj sypie błędami (...)headers already sent(...) Szczerze - nie wiem w czym problem..
Przy poniższym kodzie brak problemów
<link rel="stylesheet" href="Css/main.css" type="text/css" /> <!--[if gte IE 6]><link rel="stylesheet" href="Css/main_ie.css" type="text/css" /><![endif]-->
Przy poniższym kodzie występuję błąd jak w tytule posta
Przy poniższym kodzie brak problemów
Proszę o pomoc
EDIT:
Przeprowadziłem małe testy.. Wyniki są dla mnie zaskakujące - nie potrafię ich racjonalnie wytłumaczyć..
Brak błędu headers...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <?php echo '<base href="http://' . $_SERVER['HTTP_HOST'] . Config::$SystemPath . '" />'; ?> <link rel="stylesheet" href="Css/main.css" type="text/css" /> <link rel="stylesheet" href="Css/main1.css" type="text/css" /> <link rel="stylesheet" href="Css/main2.css" type="text/css" /> <link rel="stylesheet" href="Css/main3.css" type="text/css" /> <link rel="stylesheet" href="Css/main4.css" type="text/css" /> <link rel="stylesheet" href="Css/main5.css" type="text/css" /> <link rel="stylesheet" href="Css/main6.css" type="text/css" /> <link rel="stylesheet" href="Css/main7.css" type="text/css" /> <link rel="stylesheet" href="Css/main8.css" type="text/css" /> <link rel="stylesheet" href="Css/main9.css" type="text/css" /> </head> <body>
Błąd headers already sent...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <?php echo '<base href="http://' . $_SERVER['HTTP_HOST'] . Config::$SystemPath . '" />'; ?> <link rel="stylesheet" href="Css/main.css" type="text/css" /> <link rel="stylesheet" href="Css/main1.css" type="text/css" /> <link rel="stylesheet" href="Css/main2.css" type="text/css" /> <link rel="stylesheet" href="Css/main3.css" type="text/css" /> <link rel="stylesheet" href="Css/main4.css" type="text/css" /> <link rel="stylesheet" href="Css/main5.css" type="text/css" /> <link rel="stylesheet" href="Css/main6.css" type="text/css" /> <link rel="stylesheet" href="Css/main7.css" type="text/css" /> <link rel="stylesheet" href="Css/main8.css" type="text/css" /> <link rel="stylesheet" href="Css/main9.css" type="text/css" /> <link rel="stylesheet" href="Css/main10.css" type="text/css" /> </head> <body>
Czy jest ograniczona ilość znaczników meta/itp, którą można zamieścić w sekcji head ?