RE: [PHP] I want a cookie!!!
| From: | Jonathan Sharp | Date: | Sat, 16 Dec 2000 00:18:37 +0000 |
| Subject: | RE: [PHP] I want a cookie!!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30617@lists.php.net to get a copy of this message | ||
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