Autor Zpráva
tuareg
Profil *
Ahoj.

Mám takýto problém.
Mám PHP skript :


Priklad 1:

<html>
<head>
<title>Príklad 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
</head>

<body>
<?php
session_start();
session_register("meno");
$_SESSION['meno'] = 'Josef';
echo '<a href="pr2.php?PHPSESSID='.session_id().'">Pokracovat</a>';
?>

</body></html>



Pr2.php:


<html>
<head>
<title>Príklad</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
</head>

<body>

<?php
session_start();
echo 'Vaše meno je '.$_SESSION['meno'];
session_destroy();
?>

</body></html>



Keď spustím Príklad 1 vypíše túto chyby.

Warning: Cannot send session cache limiter - headers already sent (output started at c:\inet_srv\http\doc_root\pr1.php:8) in c:\inet_srv\http\doc_root\pr1.php on line 10



Prosím poraďte.

Ďakujem Noro.
nightfish
Profil
FAQ nečteme? ve fóru nehledáme? tak to je pak těžký...
Toto téma je uzamčeno. Odpověď nelze zaslat.

0