Re: time function
| From: | Hannes Magnusson | Date: | Fri, 24 Jul 2009 07:57:38 +0000 |
| Subject: | Re: time function | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-5511@lists.php.net to get a copy of this message | ||
2009/7/23 mustafa kaplan <kaplanmustafa_@hotmail.com>:
>
> hello. I have started to learn php programming and i have a basic problem..I am not able to use
> time function, whenever i try to use it, i have some problems.For instance, i was just learning to
> setting cookies with setcookie function.When i use the time function for the third entity of
> setcookie function i get this error from my browser: Cannot modify header information - headers
> already sent by (output started at C:\AppServ\www\cookies.php:9) I am using adobe dreamweaver cs4
> edition for programming and i am using mozilla firefox for browser.If you can help me with this
> problem, i will be very glad.thank you.
>
Read the error message... on line 9 in cookies.php you are printing
something out. You cannot print _anything_ out before you use
setcookie().
No warnings. No spaces. No "echo". No "print". Nothing. Nada.
For more help, please contact our general user list, see
http://php.net/mailinglists for more information on our
various lists.
-Hannes