> /tmp/skr.log"); $slotid = 0; while(array_key_exists($who,$gslot) && array_key_exists($slotid,$gslot[$who])) { if($gslot[$who][$slotid] == "on") { $ftable["$who"][$slotid] = 1; } else { $ftable["$who"][$slotid] = 0; } $slotid++; } $fw = fopen("data.dat", "w"); if(! $fw) print "file error"; print serialize($ftable); print fwrite($fw, serialize($ftable)); fclose($fw); ?>