RE: [PHP] register globals on

2006-09-12 Thread tedd
At 12:55 PM +0100 9/12/06, Ford, Mike wrote: Correction: $_GET - any parameters passed in the GET string. $_POST - any parameters passed in the body of a POST query. $_COOKIE - Any values sent by the browser as a cookie. $_REQUEST - The *three* above merged. I'm not sure whether $_REQUE

RE: [PHP] register globals on

2006-09-12 Thread Ford, Mike
On 12 September 2006 08:18, Larry Garfield wrote: [...] > > In any vaguely recent version of PHP, you get five super-global array > variables: > > $_GET - any parameters passed in the GET string. > $_POST - any parameters passed in the body of a POST query. > $_REQUEST - The two above merged.

Re: [PHP] register globals on

2006-09-12 Thread J R
correction: $GLOBALS not $_GLOBAL :) cheers On 9/12/06, J R <[EMAIL PROTECTED]> wrote: there are many ways you can keep information. now if you must really use global. you can still use global even if the server is set to global off by using $_GLOBAL or using globals decleration. example: $

Re: [PHP] register globals on

2006-09-12 Thread J R
there are many ways you can keep information. now if you must really use global. you can still use global even if the server is set to global off by using $_GLOBAL or using globals decleration. example: $test = 'i'm global'; function f1() { echo $_GLOBAL['test']; // should display i'm global

Re: [PHP] register globals on

2006-09-12 Thread Chris
Zbigniew Szalbot wrote: Hello again, On Tue, 12 Sep 2006, Chris wrote: I thought I would ask your opinion before we make any decision. Is it really so that without register globals, such things as displaying information from databases based on the initial choice of languages is not an option?

Re: [PHP] register globals on

2006-09-12 Thread Larry Garfield
On Tuesday 12 September 2006 01:16, Zbigniew Szalbot wrote: > Hello again, > > Can I ask a general question? One of the website that we have built was > constructed using register globals. Thanks to that we set the language for > browsing the website by determining user's browser language and then

Re: [PHP] register globals on

2006-09-11 Thread Zbigniew Szalbot
Hello again, On Tue, 12 Sep 2006, Chris wrote: > > I thought I would ask your opinion before we make any decision. Is it > > really so that without register globals, such things as displaying > > information from databases based on the initial choice of languages is not > > an option? I am not a

Re: [PHP] register globals on

2006-09-11 Thread Chris
Zbigniew Szalbot wrote: Hello again, Can I ask a general question? One of the website that we have built was constructed using register globals. Thanks to that we set the language for browsing the website by determining user's browser language and then also (I think) it is used to remember some

[PHP] register globals on

2006-09-11 Thread Zbigniew Szalbot
Hello again, Can I ask a general question? One of the website that we have built was constructed using register globals. Thanks to that we set the language for browsing the website by determining user's browser language and then also (I think) it is used to remember some other choices users make w

Re: [PHP] Register Globals=ON

2005-01-03 Thread Richard Lynch
HarryG wrote: > Which process is better to use in PHP? > > Having register_globals=on and referring to variables as if($name){} or > using $_GET & $_POST statements like if(isset($_GET['name']))? > > What is the main advantage/disadvantage in both cases. The only advantage in register_globals = ON

Re: [PHP] Register Globals=ON

2005-01-03 Thread John Holmes
HarryG wrote: Having register_globals=on and referring to variables as if($name){} or using $_GET & $_POST statements like if(isset($_GET['name']))? What is the main advantage/disadvantage in both cases. Doesn't matter if it's on or off, really. 1) Don't trust any input from the user 2) Always init

Re: [PHP] Register Globals=ON

2005-01-03 Thread Greg Donald
On Mon, 3 Jan 2005 22:21:48 +1100, HarryG <[EMAIL PROTECTED]> wrote: > Which process is better to use in PHP? > > Having register_globals=on and referring to variables as if($name){} or > using $_GET & $_POST statements like if(isset($_GET['name']))? > > What is the main advantage/disadvantage in

[PHP] Register Globals=ON

2005-01-03 Thread HarryG
Which process is better to use in PHP? Having register_globals=on and referring to variables as if($name){} or using $_GET & $_POST statements like if(isset($_GET['name']))? What is the main advantage/disadvantage in both cases. Thanks HarryG -- PHP General Mailing List (http://www.php.net/) T

[PHP] Re:[PHP] Register globals on and off

2003-01-29 Thread Daniel Leighton
Hi Davy, I found the following in the php manual: Please note that register_globals cannot be set at runtime (ini_set()). Although, you can use .htaccess if your host allows it as described above. An example .htaccess entry: php_flag register_globals on. on this page: http://www.php.net/manual

[PHP] Register globals on and off

2003-01-29 Thread Davy Obdam
Hello people, On my development machine (win XP/Apache 2.0.44/PHP 4.3.0/MySQL 3.23.55) i have several websites that i made some time ago that require register globals to be On in the php.ini. Ofcourse i know thats not a good idea at all for security, but rewriting all this code is not an option

Re: [PHP] register globals on in stand alone php installation?

2002-08-25 Thread Jason Wong
On Saturday 24 August 2002 16:52, Andy wrote: > I do have a command line php version installed and I need to switch > register globals to on for this install. Where do I find this php.ini > regarding this installation. There is also a web-php installation running > where I do have a php.ini for.