note 61143 added to ref.session
| From: | warkangaroo at osu1 dot php dot net | Date: | Thu, 26 Jan 2006 16:33:59 +0000 |
| Subject: | note 61143 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-102501@lists.php.net to get a copy of this message | ||
After hitting my head on the desk a few times trying to debug this construct,
$_SESSION['result']['number'] = $blah;
returning the warning,
"Warning: Cannot use a scalar value as an array"
and not saving my value, I found out that apparently $_SESSION['result'] is a reserved
variable... I changed it to $_SESSION['bresult'] and it works fine.
Just trying to save someone a headache...
----
Server IP: 64.71.164.2
Probable Submitter: 64.132.121.126
----
Manual Page -- http://www.php.net/manual/en/ref.session.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61143
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61143&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61143&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61143&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61143&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61143&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61143&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61143&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61143&report=yes
Search -- http://master.php.net/manage/user-notes.php