Re: [PHP4BETA] Is autoregister of HTTP_STATE_VARS possible?
| From: | Jade Nicoletti | Date: | Thu, 27 Apr 2000 16:13:27 +0000 |
| Subject: | Re: [PHP4BETA] Is autoregister of HTTP_STATE_VARS possible? | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14089@lists.php.net to get a copy of this message | ||
Sorry, I think you don't understand me. The following line would be a php
onliner:
echo "count: ", ++$HTTP_SESSION_VARS['count'];
Of course if session.auto_start and track_vars are truned on, and register
globals is turned off.
In my copy of php, this will look in the global scope for a variable
named $count. $HTTP_SESSION_VARS['foo'] is for reading, the coresponding
variable ($foo) is for writing.
Actually, I don't think I've got it wrong, but of course it's not to exclude..
On Thu, Apr 27, 2000 at 10:26:51AM -0500, Andrei Zmievski wrote:
>
> Yes, this is possible if you turn track_vars on and register_globals
> off. Then anything in $HTTP_SESSION_VARS[] will be saved automatically.
No, as far as I can see, this not what I mean.
>
> -Andrei
Think of it, as if it were an array that is automatically registred.
-Jade.
--
===============================================================================
Jade Nicoletti Nicoletti Net Services Tel. 01 240 4774
Geschäftsleitung Postfach 2519 Fax 01 240 4775
System-Administration 8021 Zürich
============================================[ Weitere Infos: http://nns.ch/ ]==