The key here is that if it's good (ie, an allowed IP), it will produce no output - it is meant to go at the top of a PHP page. If the IP is bad it prints "Beggar OFF!" and dies, otherwise allows the PHP script below it to continue. This would work if you paste the code at the top of another PHP page or if you simply include() it...
Also, I'm not sure if the array() function likes having just one item in the list - try it with a second IP (like 255.255.255.255 or otherwise invalid/unlikely) and see if that works - it may be dying at that point and just not sending an error message (a minor but annoying bug in the current version on the servers).
Lemme know if that helps any...
<edit>
I think I just realized a potential problem - it is going to take the "."'s in the IP as a regular expression pattern - ie, matching any character... escape the dots...
(I hate that the UBB doesn't show the full post when editing - grrr - guessing here)
$bad = array ('192\.245\.12\.', '208\.135\.13\.34');
Something like that... using single quotes so that the slashes remain intact.
I'll run some tests later on (after some sleep) and come up with what will work

</edit>
------------------
Justin Nelson
FutureQuest Support
--
Escape the *** **** dots!
[This message has been edited by Justin (edited 09-12-99)]