Re: [PHP] Can't set a cookie? From: Julie Meloni (julie <email protected>)
Date: 06/15/02

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