You are here: Re: does php 6 support $REMOTE_ADDR??? « PHP Programming Language « IT news, forums, messages
Re: does php 6 support $REMOTE_ADDR???

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация