Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Posts
    724
    Tokens
    0

    Unhappy Help with my script please!

    Simple problem but i cant put my finger on it, any ideas ?

    Code:
    <?PHP
    $staff_ips[1] = "84.71.128.117"; 
    $staff_ips[2] = "84.71.128.118"; 
    if($staff_ips[1] != $_SERVER['REMOTE_ADDR']){ 
    die("You are not authorised to view this Page."); 
      else if($staff_ips[2] != $_SERVER['REMOTE_ADDR']){ 
    die("You are not authorised to view this Page."); 
    } 
    } 
    ?>
    Starting webdesign again.

  2. #2
    Join Date
    Aug 2006
    Location
    Northamptonshire
    Posts
    250
    Tokens
    0

    Default

    Try making the PHP non-caps i'm not sure if that does anything but try it anyway, if not what line has the error?

  3. #3
    Join Date
    Feb 2005
    Location
    Leicestershire / Sheffield
    Posts
    685
    Tokens
    0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •