|
Posted by dyer85 on 11/26/06 08:14
Try using the superglobal, $_SERVER['HTTP_REFERER']
On Nov 25, 1:49 pm, Andy Hassall <a...@andyh.co.uk> wrote:
> On 25 Nov 2006 13:21:38 -0800, "jon" <jmsha...@hotmail.com> wrote:
>
> >I'm trying to make a page that only prints the page when it is acess
> >from one site only. I typed the code in and nothing is happening heres
> >the code
>
> ><?php
> >switch ($HTTP_REFERER) Don't multipost.
>
> What are you expecting to set $HTTP_REFERER? That's not set in PHP 4 or 5 in
> the normal configuration, let alone in PHP 6. Look up "register_globals".
>
> PHP 6 removes the option for register_globals completely, forcing you to use
> the method recommended for the past several years.
>
> --
> Andy Hassall :: a...@andyh.co.uk ::http://www.andyh.co.ukhttp://www.andyhsoftware.co.uk/space:: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|