'; if(strlen($room)>=3){ $cache='./data/room-cache/'.md5($room); $handle=fopen($cache, 'w') or die('cannot write cache!'); fwrite($handle, $r['TYYPPI']); fclose($handle); } } }