Re[2]: [PHP] Can't set a cookie? [SOLVED]

2002-06-16 Thread Julie Meloni
C I've recently been learning about cookies myself, and had the same problem C with vs. 0 (PHP FastEasy Web Development showed the in their book). The book was written in 2000 and the change is in some recent version of PHP. The instructions have been altered in the 2nd edition of the book.

[PHP] Can't set a cookie?

2002-06-15 Thread Lazor, Ed
Hi Everyone, Any idea why I'm getting this error? Warning: setcookie() expects parameter 3 to be long, string given in *my script* on line 2 Here's the entire script generating the error: ?php setcookie(mytest, 1, , /); ? The script doesn't work on a new hosting service I subscribed to, but

Re: [PHP] Can't set a cookie?

2002-06-15 Thread Julie Meloni
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). -

Re: [PHP] Can't set a cookie?

2002-06-15 Thread Nathan Taylor
The 3rd parameter is an optional time to expire parameter, if you don't want to set it, leave it out. setcookie(cookiename,value); works fine - Original Message - From: Lazor, Ed Sent: Saturday, June 15, 2002 11:48 AM To: php-general Subject: [PHP] Can't set a cookie? Hi Everyone

RE: [PHP] Can't set a cookie? [SOLVED]

2002-06-15 Thread Lazor, Ed
Thanks for your help Everyone =) I needed the 3rd parameter set in order to specify the fourth /, because the cookie is being set by a script located in a sub-directory. One of the old documents I read said would work as the third parameter - and it did on my old servers. Setting the third

Re: [PHP] Can't set a cookie? [SOLVED]

2002-06-15 Thread C
: Saturday, June 15, 2002 9:45 AM Subject: RE: [PHP] Can't set a cookie? [SOLVED] Thanks for your help Everyone =) I needed the 3rd parameter set in order to specify the fourth /, because the cookie is being set by a script located in a sub-directory. One of the old documents I read said would