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

Posted by jon on 11/25/06 21:42

'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)
{
case ("www.sentinelsolutionsinc.com/js/secret.html") :
showme();
break;
case "http://www.sentinelsolutionsinc.com/js/secret2.php" :
showme();
break;
case "http://www.sentinelsolutionsinc.com/js/scripts.html" :
showme();
break;
case "http://www.sentinelsolutionsinc.com/js/mjokes.html" :
showme();
break;
case "http://www.sentinelsolutionsinc.com/js/movies.html" :
showme();
break;
default : print "<body
onload=\"window.location='index.html'\">";

}

function showme()
{
**website here***
}

?>

 

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

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