It seemed to not get set when just typing in the address of the page
rendering phpinfo(), which makes sense, so I suppose you could use isset to
make sure the request had come from somewhere, and then check the
$_SERVER["HTTP_REFERER"] value to make sure it was from your site, or
wherever.
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'
----- Original Message -----
From: "George Pitcher" <George.Pitcher@xxxxxxxxxxxxxxxxxxxxxxxx>
To: "Jacob Kruger" <jacobk@xxxxxxxxxxxxxx>
Sent: Wednesday, February 22, 2012 10:07 AM
Subject: RE: Trying to retrieve/confirm referrer URL in a PHP
page/script
Jacob,
It's almost certainly going to be one of the $_SERVER elements, but you can
check which one by looking down the properties.
George
-----Original Message-----
From: Jacob Kruger [mailto:jacobk@xxxxxxxxxxxxxx]
Sent: 22 February 2012 08:03
To: php-windows@xxxxxxxxxxxxx
Subject: Re: Trying to retrieve/confirm referrer URL in a PHP
page/script
Ok, had a look at the phpinfo() output, but not sure what to look for, since
doesn't seem to reflect any form of referer info, etc., unless it's related
to one of the $_SERVER array elements/items?
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'
----- Original Message -----
From: "George Pitcher" <George.Pitcher@xxxxxxxxxxxxxxxxxxxxxxxx>
To: "Jacob Kruger" <jacobk@xxxxxxxxxxxxxx>
Sent: Wednesday, February 22, 2012 9:44 AM
Subject: RE: Trying to retrieve/confirm referrer URL in a PHP
page/script
Jacob,
Have a look at the phpinfo() output. That should point you to the correct
method for your site.
George
-----Original Message-----
From: Jacob Kruger [mailto:jacobk@xxxxxxxxxxxxxx]
Sent: 22 February 2012 07:31
To: php-windows@xxxxxxxxxxxxx
Subject: Trying to retrieve/confirm referrer URL in a PHP
page/script
As subject line says, it would be nice, sometimes, specifically in terms of
form submission processing to maybe confirm the referring URL/server, and I
have used similar things in past with classic ASP etc., but can't remember
that exact syntax, but think it had something to do with something like a
HTTP response referer header or something.
Either way, I know there are collections of values like $_REQUEST, $_SERVER,
etc., but not sure where to try find something like this, or if it's
simply/easily possible/doable?
TIA
Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'
The information in this message is intended solely for the addressee and
should be considered confidential. Publishing Technology does not accept
legal responsibility for the contents of this message and any statements
contained herein which do not relate to the official business of Publishing
Technology are neither given nor endorsed by Publishing Technology and are
those of the individual and not of Publishing Technology. This message has
been scanned for viruses using the most current and reliable tools available
and Publishing Technology excludes all liability related to any viruses that
might exist in any attachment or which may have been acquired in transit.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The information in this message is intended solely for the addressee and
should be considered confidential. Publishing Technology does not accept
legal responsibility for the contents of this message and any statements
contained herein which do not relate to the official business of Publishing
Technology are neither given nor endorsed by Publishing Technology and are
those of the individual and not of Publishing Technology. This message has
been scanned for viruses using the most current and reliable tools available
and Publishing Technology excludes all liability related to any viruses that
might exist in any attachment or which may have been acquired in transit.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php