[PHP] Check if ip is with a network block

2001-11-14 Thread Paul Wolstenholme
(($address_client & $bitmask) == ($address_required & $bitmask)) { echo "Ip is within block"; } else { echo "Ip is NOT within block"; } -- Paul Wolstenholme SMA Webware http://www.zzube.com/ What do you know? http://make.zzube.com/ Vancouver,

Re: [PHP] comma-formatting numbers

2001-11-17 Thread Paul Wolstenholme
You can do this using the number_format function or probably sprintf. /Paul On Saturday, November 17, 2001, at 01:36 PM, Scott Dudley wrote: > > i'm new to php and am having difficulty translating this tiny awk > function that i use to comma format numbers. can someone assist? my > stumbling