[RESOLVED] Cookie don't creat
hi
i want to use setcookie() function like below code:
PHP Code:
setcookie('CookieName','ShaMSofT',time()+60*60);
but i see this error:
Quote:
Warning: Cannot modify header information - headers already sent by (output started at J:\wamp\www\Project\Hotel CMS\Copy of Ex.php:1) in J:\wamp\www\Project\Hotel CMS\Copy of Ex.php on line 13
i use "WAMP5 Version 1.6.4"
help me please
-----------
Sorry For Bad My English :blush:
Re: [RESOLVED] Cookie don't creat
I Love it :lol:
PHP Code:
$connect = mysql_connect("localhost",$USER, $PASS) or die ("Hey loser, check your server connection.");
Suffice to say, the positioning of your setcookie's is the least of your worries. That code needs some serious re-working.
Re: [RESOLVED] Cookie don't creat
what means? :confused: :rolleyes:
Quote:
Suffice to say, the positioning of your setcookie's is the least of your worries. That code needs some serious re-working.
yes,i know
i want to finish the coding quickly now. in the next version patch the security bug and making the better code. ;)
Re: [RESOLVED] Cookie don't creat
You should get into the habit of coding correctly from the beginning. That will save you development time in future.
Re: [RESOLVED] Cookie don't creat
Quote:
You should get into the habit of coding correctly from the beginning. That will save you development time in future.
thanks for your advice :thumb: i try to it ;)