Li1M0ST3Rz
I <3 Bianca
- Sep 13, 2010
- 269
- 166
Alright hi guys i havent been one for ages, oh well but heres my problem i havent coded for a while so its a little rusty
so i am basically doing is coding a code that if the url aint what the array has than lead to 404 page at the end of the page i added this:
PHP:
$host2 = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
$link2 = array ('index.php', 'home.php?home', 'home.php?register', 'home.php?personal', 'home.php?contact', 'home.php?benefit', 'process.php');
if($host2 == $link2)
{
PHP:
<?php
}else{
header('./404.php');
}
?>