>> If i use, at the beginning of my scripts,
>> ini_set('register_globals', 0), register globals will be
>> turned off?
> if you have php <= 4.2.3 yes, otherwise no.
> it has to be set in php.ini, .htaccess, or httpd.conf
You may NEVER set register_globals at runtime with
ini_set() regardless of
On Fri, July 8, 2005 7:50 am, Terry Romine said:
You *ARE* doing session_start at the top of each page, right?...
Ya gotta do that.
> I was setting the $_SESSION by:
> $_SESSION['var_name'] = "this";
> or
> $my_local = "this";
> $_SESSION['var_name'] = $my_local;
There *WAS* a bug in PHP [mumbl
t;
Sent: Jul 8, 2005 9:15 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Register globals and ini_set
Since you mention the PHP version was old (4.1) then I have to ask: were
you using the $_SESSION array all along or were you using
session_register to register session variables? Although you pro
Since you mention the PHP version was old (4.1) then I have to ask: were
you using the $_SESSION array all along or were you using
session_register to register session variables? Although you probably
aren't since that would be rather easy to debug.
The script in which your global_variable wa
ething like this work?
where $global_var is set in one file and then used in another?
Thanks for any help
Terry
-Original Message-
From: Sebastian <[EMAIL PROTECTED]>
Sent: Jul 8, 2005 6:42 AM
To: [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Subject: Re: [PHP] Register globals and i
if you have php <= 4.2.3 yes, otherwise no.
it has to be set in php.ini, .htaccess, or httpd.conf
[EMAIL PROTECTED] wrote:
Hi,
If i use, at the beginning of my scripts, ini_set('register_globals', 0),
register globals will be turned off?
Thanks
--
PHP General Mailing List (http://www.ph
Hi,
If i use, at the beginning of my scripts, ini_set('register_globals', 0),
register globals will be turned off?
Thanks
7 matches
Mail list logo