On Wed, Mar 17, 2004 at 06:11:31PM -0500, Jake McHenry wrote:
> > I think you want something like:
> > 
> >    if (in_array($_SERVER['REMOTE_ADDRESS'], file('log.txt')))
> >        die("Sorry, the access is denied.");
> > 
> > - Rob
> 
> 
> yes, that'll work too.. just more compact than what I posted :-p
> 

oops, should actually be 'REMOTE_ADDR' not 'REMOTE_ADDRESS'. :-)

- rob

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to