Hi.
I have setup a slackware computer as a webserver to do my php development work on before putting the site on the proper-and-paid-for webspace. So i want to setup apache and php to work in the same way as the webspace.
All is going well but I'v hit a problem using cookies.
The following code is a little test...
Code:
<?PHP
{
setcookie('test_cookie','some testing data',time()+(60*60));
print("<html>
<head><title>testing</title></head>
<body>
");
echo "hello the cookie sez: ".$_COOKIE['test_cookie']." ::";
print("
</body>
</html>");
}
?>
it works fine on the webspace but on my local slack machine the $_COOKIE varible doesnt return anything.
Do I need to turn cookies on in php.ini or in the httpd.conf file?
Thanks Heaps,
Ben.