J'ai un problème lors de l'envoi des cookies et mon hébergeur me renvoye :
Code : Tout sélectionner
Warning: setcookie() expects parameter 3 to be long, string given in /home/.nfs11/toutoos/www/index.php on line 2Code : Tout sélectionner
<?php
SetCookie("Visite","Oui","3600+time()");
$time = time();
$ip = $_SERVER["REMOTE_ADDR"];
include ('style.php');
include ('data.php');
if (isset($_COOKIE["Visite"])) {
echo "<SCRIPT LANGUAGE=\"JavaScript\">";
echo "window.open('popup.php','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=1, resizable=0, copyhistory=0, menuBar=0, width=400, height=400');";
echo "</SCRIPT>hello";
}
else {
echo "<SCRIPT LANGUAGE=\"JavaScript\">";
echo "window.open('popup.php','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=1, resizable=0, copyhistory=0, menuBar=0, width=400, height=400');";
echo "</SCRIPT>";
}
$enregvisite = @mysql_query("INSERT INTO `stats` (`ip`,`time`) VALUES ('$ip', '$time')");
?>