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
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.
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:
$
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
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?
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
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
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
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
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
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
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
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
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
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
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.
16 matches
Mail list logo