Otóż nawiedził mnie błąd związany z sesjami...
Kod
[b]Warning[/b]: session_start() [[url="http://magic.org.pl/games/function.session-start"]function.session-start[/url]]: Cannot send session cookie - headers already sent by (output started at /home/xxx/public_html/games/index.php:1) in [b]/home/koko99/domains/magic.org.pl/public_html/games/index.php[/b] on line [b]2[/b]
[b]Warning[/b]: session_start() [[url="http://magic.org.pl/games/function.session-start"]function.session-start[/url]]: Cannot send session cache limiter - headers already sent (output started at /home/xxx/public_html/games/index.php:1) in [b]/home/koko99/domains/magic.org.pl/public_html/games/index.php[/b] on line [b]2
[b]Warning[/b]: session_start() [[url="http://magic.org.pl/games/function.session-start"]function.session-start[/url]]: Cannot send session cache limiter - headers already sent (output started at /home/xxx/public_html/games/index.php:1) in [b]/home/koko99/domains/magic.org.pl/public_html/games/index.php[/b] on line [b]2
[/b]Zawartość index.php jest następująca :
<?php include("functions.php"); include("up.php"); $body = $_GET['body']; $body = $_GET["body"]; if ($body=="") { include("news.php"); } else { { include("$body.php"); } else { include("error.php"); } } down(); include("down.php"); ?>
A część z <head> up.php taka :
<!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=utf-8" /> <title>TibianGame Online</title> <meta http-equiv="Reply-to" content="" /> <meta name="Description" content="Tibia Game" /> <meta name="keywords" content="słowa kluczowe" /> <meta name="Author" content="Magic" /> <meta name="Robots" content="ALL" /> <meta name="revisit-after" content="10" /> <link rel="stylesheet" type="text/css" href="style.css" /> </head>
Potem(w up.php) ciągnie się kod HTML. Otóż koledzy, wiecie może co jest przyczyną błędu?