Well, yeah; the subject line is there to describe the subject of the post.....
The range isn't really necessary; the dot-quad format of IP addresses isn't the only one possible, and is often less-than optimal.
$first_ip_in_range=ip2long('193.154.124.0');
$last_ip_in_range=ip2long('193.154.124.255');
$ip=ip2long($_SERVER['REMOTE_ADDR']);
if($first_ip_in_range<=$ip && $ip<=$last_ip_in_range)
{
//IP in range.
}
And it goes without saying that ip2long('193.154.124.255') is a constant.