Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
my code isCode: Select all
<html>
<head>
<title>Cookies</title>
</head>
<body>
hello world
<?php setcookie('test',10,time()+12);?>
</body>
</html>hello world
Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\ho.php:7) in C:\wamp\www\ho.php on line 7
many people say that this's caused from white space but this code 's so simple.
any suggestion? thank you in advance.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]