|
|
 |
Re: FN-FORUM PHP Problem - Only Simple
date posted 21st June 2002 18:25
This is a multi-part message in MIME format.
------=_NextPart_000_0264_01C21950.B0D0FEC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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 -----=20
From: Darren=20
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,
[EMAIL REMOVED] Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt =
72.0pt 90.0pt; mso-header-margin: 35.4pt; mso-footer-margin: 35.4pt; =
mso-paper-source: 0; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: =
personal-compose; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; =
mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; =
mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.SpellE {
mso-style-name: ""; mso-spl-e: yes
}
SPAN.GramE {
mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
page: Section1
}
Hi Darren,
If you're using PHP 4.2.0 upwards in it's default=20
configuration then environment and server variables, along with =
GTE POST=20
and cookie data, are no longer automatically created as global =
variables. This=20
is thanks to the register_globals setting in the php.ini file, which =
needs to be=20
set to 'on'. Alternatively, if you don't have access to the PHP =
configuration=20
then you can try adding the following to the beginning of your=20
scripts...
extract($_SERVER);
extract($_ENV);
extract($_GET);
extract($_POST);
extract($_COOKIE);
If that seems a little dratic, then just change the =
section=20
that outputs HTTP_REFERER to...
<?php echo getenv('HTTP_REFERER'); =
?>
I hope this helps!
Regards,
Steve
----- Original Message -----
From:=20
|
 |
|