|
|
 |
RE: FN-FORUM PHP Problem - Only Simple
date posted 21st June 2002 19:10
This is a multi-part message in MIME format.
------=_NextPart_000_0001_01C21957.D6ADF8D0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Thanks for your help I have set the register_globals to on, but when I
use HTTP_REFERER it does not take me back to the previous page which is
what I would like it to do it is taking me back to the directory. Why
is it doing this and some one tell me how to stop it from doing so.
-----Original Message-----
From: [EMAIL REMOVED]
[EMAIL REMOVED] On Behalf Of Steve Webster
Sent: 21 June 2002 18:23
To: [EMAIL REMOVED]
Subject: Re: FN-FORUM PHP Problem - Only Simple
Hi Darren,
If you're using PHP 4.2.0 upwards in it's default configuration then
environment and server variables, along with GTE POST and cookie data,
are no longer automatically created as global variables. This is thanks
to the register_globals setting in the php.ini file, which needs to be
set to 'on'. Alternatively, if you don't have access to the PHP
configuration then you can try adding the following to the beginning of
your scripts...
extract($_SERVER);
extract($_ENV);
extract($_GET);
extract($_POST);
extract($_COOKIE);
If that seems a little dratic, then just change the section that outputs
HTTP_REFERER to...
I hope this helps!
Regards,
Steve
----- Original Message -----
From: Darren [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Friday, June 21, 2002 6:13 PM
Subject: FN-FORUM PHP Problem - Only Simple
I know this is simple but why does it keep bringing back an Undefined
variable: HTTP_REFERER. Can some one please help with this.
Applied theme,
Thanks for your help I have set the
register_globals to on, but when I use HTTP_REFERER it does not take me =
back to
the previous page which is what I would like it to do it is taking me =
back to
the directory. Why is it =
doing this and
some one tell me how to stop it from doing so. =
-----Original =
Message-----
From:
[EMAIL REMOVED] =
[EMAIL REMOVED] On Behalf Of Steve Webster
Sent: =
21 June 2002 =
18:23
To: =
[EMAIL REMOVED]
Subject: Re: FN-FORUM PHP =
Problem
- Only Simple
Hi =
Darren,
If you're =
using PHP 4.2.0
upwards in it's default configuration then environment and server
variables, along with GTE POST and cookie data, are no longer
automatically created as global variables. This is thanks to the
register_globals setting in the php.ini file, which needs to be set to =
'on'.
Alternatively, if you don't have access to the PHP configuration then =
you can
try adding the following to the beginning of your =
scripts...
extract($_SERVER);
extract($_ENV);
extract($_GET);
extract($_POST);
extract($_COOKIE);
If that seems =
a little
dratic, then just change the section that outputs HTTP_REFERER =
to...
<?php echo
getenv('HTTP_REFERER'); ?>
I hope this =
helps!
Regards,
Steve
----- Original Message =
-----
From: |
 |
|