29 && $iparray[1] < 40){ # definitely a stanford wireless address $stanford = $stanford + 1; } if ($iparray[1] == 35 && $iparray[2] > 135 && $iparray[2] < 153){$hopkins = $hopkins + 1;} #1st and 2nd IP ranges for Hopkins } $fd = fopen('homedata.txt' , "w") or die ("Can't open $filename") ; $fout= fwrite ($fd , "$name,$world,$stanford,$hopkins") ; fclose($fd) ; ?>