Kasper Kristensen wrote:
"Kasper Kristensen" <no****@nospam.invalid> wrote in message
news:40*********************@dread12.news.tele.dk. ..
"Pedro Graca" <he****@hotpop.com> wrote in message
news:c2*************@ID-203069.news.uni-berlin.de...
These scripts work for me as you've posted them.
I guess the error may be hidden on one of the lines you didn't post.
These are the only lines. I'm suspecting some kind og setup problem. Maybe
in httpd.config er php.ini.
Turn on error_reporting for all errors in your scripts (at least while
debugging) by putting at the very top of them
<?php error_reporting(E_ALL); ?>
I'll try that, and get back to you.
Cheers
Kasper
Nope. Didn't explain a thing.
Kasper
It looks like you are making the assumption that the first cookie is not
set - It just seems to have problems displaying it - I don't know why
(it works fine on my system) but what you could do is change your
showcookie.php script to what I have below - Alternatively, just change
showcookie.php to have a single command: phpinfo(); This command dumps
the full php environment out in a nice table so you should be able to
page down (or do a find on the page) for COOKIE1 and COOKIE2.
If you still have problems, just humour me and choose different names
for the cookies - Call COOKIE1 abc and call COOKIE2 def - It could be
that somehow, COOKIE1 is a reserved word and that cannot be used as an
index on your system.... I'm just pulling at straws here mind...
anyway... My suggested showcookie.php:
<?
foreach($_COOKIE as $cookieName=>$cookieValue)
{ print("<br>Cookie named $cookieName has value $cookieValue");
}
?>
Drop another byte if you still have problems...
randelld