RE: [PHP] Why T_error?
| From: | Ford, Mike [LSS] | Date: | Mon, 13 Jan 2003 14:16:32 +0000 |
| Subject: | RE: [PHP] Why T_error? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-131436@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Stephen [mailto:webmaster@melchior.us]
> Sent: 10 January 2003 21:04
>
> I, once I found out that register_globals isn't always one,
> have always done HTTP variables as like $_SESSION for session
> and $_POST for form vars through post. Why, if you have
> register_globals off does it return T_error?
Why does *what* return T-error?
If this is an error message, please cut-and-paste the exact error message, and the relevant section
of code indicating which line is the one on which the error occurs.
> Should I jsut
> replace my old ways with $HTTP_SESSION_VARS for sessions and
> $HTTP_POST_VARS for posted form vars from now on or what?
Probably not. The $_* versions are the newer ones, and you should use them if you have a recent
enough version of PHP -- but if your PHP is older than 4.1.0 (in which case: why?), you will need to
use the $HTTP_*_VARS versions.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211