Any witness appearing and giving testimony shall be entitled to receive from the person at whose instance he was summoned ten cents (10¢) for every mile traveling to and from his residence, and ferriage, to be recovered in the district court upon the certificate of the commissioner. (1800, c. 557, s. 2, P.R.; R.C., c. 52, s. 33; Code, s. 2860; Rev., s. 4414; C.S., s. 6102; 1973, c. 108, s. 69.)