Date: 06/15/02
- Next message: Nathan Taylor: "Re: [PHP] Can't set a cookie?"
- Previous message: Lazor, Ed: "[PHP] Can't set a cookie?"
- In reply to: Lazor, Ed: "[PHP] Can't set a cookie?"
- Next in thread: Nathan Taylor: "Re: [PHP] Can't set a cookie?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
LE> Any idea why I'm getting this error?
LE> Warning: setcookie() expects parameter 3 to be long, string given in *my
LE> script* on line 2
LE> setcookie("mytest", 1, "", "/");
It needs the time to be something not null. If you mean to set 0, use
"0" instead of "". Or, time()+somenum (not in quotes).
- Julie
--> Julie Meloni
--> julie <email protected>
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Nathan Taylor: "Re: [PHP] Can't set a cookie?"
- Previous message: Lazor, Ed: "[PHP] Can't set a cookie?"
- In reply to: Lazor, Ed: "[PHP] Can't set a cookie?"
- Next in thread: Nathan Taylor: "Re: [PHP] Can't set a cookie?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

