<!DOCTYPE html>
<?php
setrawcookie("test_cookie", "test", time() + 3600, '/');
?>
<html>
<body>
if(count($_COOKIE) > 0) {
echo "Cookies are enabled";
} else {
echo "Cookies are disabled";
}
</body>
</html>