To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

HTML/PHP/AJAX/JS - Newsy na stronie z forum

Donon - 21-03-2009, 17:09
Temat postu: Newsy na stronie z forum
Witam. Mam problem nie wiem z czego wynikający, szukałem na forum ale nie znalazłem odpowiedzi, dlatego zakładam ten temat. Kod jest stąd
Kod:
http://www.przemo.org/phpBB2/forum/viewtopic.php?p=423717#423717


Mój problem to:
Kod:
Warning: Cannot modify header information - headers already sent by (output started at /home/donon/public_html/radio/index2.html:11) in /home/donon/public_html/radio/forum/includes/sessions.php on line 546

Warning: Cannot modify header information - headers already sent by (output started at /home/donon/public_html/radio/index2.html:11) in /home/donon/public_html/radio/forum/includes/sessions.php on line 547


Wiem że jest coś źle w index2 ale nie wiem jak to naprawić.

Tutaj jest fragment index2
Kod:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>

    <div class="pds" >
    <div class="tx5"></div>
    <div class="tx1"></div>
    <div class="tx2"></div>
    <div class="tx3"></div>
    <div class="tx4"></div>

    <div class="t1">
        <div><img src="images/t1.jpg" alt="" border="0" usemap="#posluchaj" /></div>
        <div><img src="images/t2.jpg" alt="" /></div>
        <div><img src="images/t3.jpg" alt="" /></div>


Wyświetla błąd a pod nim newsy.

Edit:
poprawiony link

kevin_ - 21-03-2009, 17:17

Donon napisał/a:
Warning: Cannot modify header information - headers already sent by (output started at /home/donon/public_html/radio/index2.html:11) in /home/donon/public_html/radio/forum/includes/sessions.php on line 546

Warning: Cannot modify header information - headers already sent by (output started at /home/donon/public_html/radio/index2.html:11) in /home/donon/public_html/radio/forum/includes/sessions.php on line 547


Poczytaj o tym błędzie, session_start(); - forum.php.pl wpisz "headers already sent" otrzymasz odpowiedź.

PS. Nie ten link podałeś, podałeś do ikonki ;-)

Donon - 21-03-2009, 17:59

Wystarczyło

Kod:
<?php
ob_start();
?>
Kod:

<?php
ob_end_flush();
?>


Dzięki za pomoc



Powered by phpBB modified by Przemo © 2003 phpBB Group