Update httpdmon.php

Fixed some issues: #1, #2