note 17658 deleted from function.strncmp by jimw

From: Date: Fri, 21 Dec 2001 00:44:07 +0000
Subject: note 17658 deleted from function.strncmp by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23682@lists.php.net to get a copy of this message
To restrict access to applications to allowed IP addresses, I plan to: if (!strncmp ($REMOTE_ADDR, $allowed, strlen ($allowed) ) ) { echo "You are allowed"; } else { echo "You are not allowed"; } where as of now, $allowed has to be hard coded. HTH

« previous php.notes (#23682) next »