Parašė sidicer· 2010 Bal. 5 13:04:40
#1
Sveiki.
tokiam kode:
<?php
/* $laikas = time()+60;
setcookie("vardas","textas","$laikas");
*/
if(isset($_COOKIE['vardas']))
{
echo "Yra";
}
else
{
echo "Nera";
$laikas = time()+60;
setcookie("vardas","textas","$laikas");
}
?>
meta tokį errior:
Nera
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\bandymai\cookies.php:13) in C:\xampp\htdocs\bandymai\cookies.php on line 15
---
Su Šventom Velykom Visus [Su jų Antra Diena]