RE: [PHP] I want a cookie!!!
| From: | Dave VanAuken | Date: | Sat, 16 Dec 2000 00:33:59 +0000 |
| Subject: | RE: [PHP] I want a cookie!!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30621@lists.php.net to get a copy of this message | ||
and because it is 2am and you are sucking down your N+1 cup of coffee, it
takes you an hour to figure out that the parse error is a { that should be a
(
am embarrased to count the number of times I have been hit by that one :)
PT/ have you tried /subdirectory/
echo back what result time()+6000 gives you in d m y H:M format... is this
the GMT expirey time that you want? (remember coding GMT GMT expiry for
cookies for some reason, maybe not required)
explain this a little more clearly > "the ultimate goal: set a cooking with
the file in the subdirectory that can be accessed when called from any file
in the domain."
Dave
-----Original Message-----
From: Jonathan Sharp [mailto:webdev@flyerware.com]
Sent: Friday, December 15, 2000 7:19 PM
To: Police Trainee; PHP
Subject: RE: [PHP] I want a cookie!!!
we have no lives...all we do is eat sleep code and scratch our heads as our
code at 2AM doesn't execute correctly and all it says is "PARSE ERROR: Line
1,234,232,342......"
-sharpie!
-----Original Message-----
From: Police Trainee [mailto:policetrainee@yahoo.com]
Sent: Friday, December 15, 2000 4:04 PM
To: PHP
Subject: [PHP] I want a cookie!!!
for the love of god, will someone please explain why:
<?
setcookie("acookie","avalue",time()+6000,"/",".mydomain.com",0);
?>
will not set a cookie!!! If I do not include the "/"
and the ".mydomain.com" and the 0, then it works
perfectly fine. But with the above, it doesn't work at
all. I am trying to set this cookie from a file in a
subdirectory of /
I have tried changing "/" to "/subdirectory", i've
tried ".mydomain.com" "mydomain.com",i've tried a 1
for a 0. nothing works. lol. and i know it's probably
some stupid little thing too.
the ultimate goal: set a cooking with the file in the
subdirectory that can be accessed when called from any
file in the domain.
Thank you sooooooo much. How did you people get so
good at PHP? I've read the manuals and online
tutorials like crazy and I STILL suck at it and I can
tell I will never "master" it. lol. I haven't even
TOUCHED mysql yet. I'll wait a few years for that one!
-mark
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net