function bind($ip = '') { if ($ip == '') { $ip = $_SERVER['SERVER_ADDR']; } $this->bind_host = $ip; }