Re: [PHP] apps that need register globals 'on' and others require

2002-05-01 Thread 1LT John W. Holmes

I remember a problem like this with 4.1.1, is it still present in 4.2?

Register_global = Off == Use session_register(var);
Register_globals = On == Use $_SESSION[var] = value;

Is that still the case for 4.2, or can you do it either way?

---John Holmes...

- Original Message -
From: [EMAIL PROTECTED]
To: Philip Olson [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, April 30, 2002 11:39 PM
Subject: Re: [PHP] apps that need register globals 'on' and others require


Addressed to: Philip Olson [EMAIL PROTECTED]
  [EMAIL PROTECTED]

** Reply to note from Philip Olson [EMAIL PROTECTED] Tue, 30 Apr 2002
22:45:49 + (GMT)

 Btw, I can't think of a reason why a script designed
 with register_globals = off would not work with it
 on.  Which is why assuming register_globals = off will
 make your scripts more portable.

I can.  Sessions.  I believe that if register globals is on  PHP looks at
the global variables to write registered variables else it looks to
$_SESSION.  I did not track down the exact reason I can't use $_SESSION
with register_globals = on, I just dropped back to using
session_register(), but I did have a problem.


Rick

Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] apps that need register globals 'on' and others require 'off' onsame server

2002-04-30 Thread Jeff Bearer

I have a server where I'm running some third party apps.

until now I've had register globals 'on', now I have a new app that
requires register globals 'off' for it to work, if I change the php.ini
to off then it breaks some of the other applications.

Is there a way to turn register globals on or off in the script at
runtime?




-- 
Jeff Bearer, RHCE
Webmaster
PittsburghLIVE.com
2002 EPpy Award, Best Online U.S. Newspaper


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] apps that need register globals 'on' and others require 'off' on same server

2002-04-30 Thread SHEETS,JASON (Non-HP-Boise,ex1)

Chapter 3 in the PHP manual covers setting PHP configuration directives via
the .htaccess file.

I use this to enable register globals where needed so that I can keep it off
for the scripts that do not depend on them.

Jason

-Original Message-
From: Jeff Bearer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 3:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] apps that need register globals 'on' and others require
'off' on same server


I have a server where I'm running some third party apps.

until now I've had register globals 'on', now I have a new app that
requires register globals 'off' for it to work, if I change the php.ini
to off then it breaks some of the other applications.

Is there a way to turn register globals on or off in the script at
runtime?




-- 
Jeff Bearer, RHCE
Webmaster
PittsburghLIVE.com
2002 EPpy Award, Best Online U.S. Newspaper


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] apps that need register globals 'on' and others require 'off' on same server

2002-04-30 Thread CC Zona

In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] (Jason Sheets) wrote:

  From: Jeff Bearer [mailto:[EMAIL PROTECTED]]
  
  Is there a way to turn register globals on or off in the script at
  runtime?

 Chapter 3 in the PHP manual covers setting PHP configuration directives via
 the .htaccess file.
 
Yes, and these directives can also be used within containers such as 
file, location, and directory within the Apache configuration file.

Since the OP asked about runtime, there is also ini_set() 
http://php.net/ini-set.

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] apps that need register globals 'on' and others require

2002-04-30 Thread php3

Addressed to: Philip Olson [EMAIL PROTECTED]
  [EMAIL PROTECTED]

** Reply to note from Philip Olson [EMAIL PROTECTED] Tue, 30 Apr 2002 22:45:49 
+ (GMT)

 Btw, I can't think of a reason why a script designed
 with register_globals = off would not work with it
 on.  Which is why assuming register_globals = off will
 make your scripts more portable.

I can.  Sessions.  I believe that if register globals is on  PHP looks at
the global variables to write registered variables else it looks to
$_SESSION.  I did not track down the exact reason I can't use $_SESSION
with register_globals = on, I just dropped back to using
session_register(), but I did have a problem.


Rick

Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php