note 40649 rejected from function.session-decode by nlopess
| From: | nlopess@php.net | Date: | Wed, 10 Mar 2004 17:02:25 +0000 |
| Subject: | note 40649 rejected from function.session-decode by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-66573@lists.php.net to get a copy of this message | ||
Note Submitter: yannickferreri@hotmail.com
----
Hi, i just switched from apache tried to easyPHP, i am using sql and i have a really eerie problem.
The php 4.3.3 doesn't seem to recognize my session variable.
Code:
session_start();
if (!session_is_registered('count'))
{
session_register('count');
$count = 0;
}
print "hi"; //test
print $count;
but the page gives me:
hi
Notice: Undefined variable: count in c:\program files\easyphp1-7\www\login.php on line 10
-----------------------------------------------------------
I imagine it has to do with the newer version because this code worked before.
Any help is greatly appreciated (im onstage, dont wanna look bad)
Thanks