is_long example

else $this->_passive=$pasv;
        if(!$this->_port_available and !$this->_passive) {
            $this->SendMSG("Only passive connections available!");
            $this->_passive=TRUE;
            return FALSE;
        }
        $this->SendMSG("Passive mode ".($this->_passive?"on":"off"));
        return TRUE;
    }

    function SetServer($host$port=21, $reconnect=true) {
        if(!is_long($port)) {
            $this->verbose=true;
            $this->SendMSG("Incorrect port syntax");
            return FALSE;
        } else {
            $ip=@gethostbyname($host);
            $dns=@gethostbyaddr($host);
            if(!$ip) $ip=$host;
            if(!$dns) $dns=$host;
            // Validate the IPAddress PHP4 returns -1 for invalid, PHP5 false             // -1 === "255.255.255.255" which is the broadcast address which is also going to be invalid             $ipaslong = ip2long($ip);
            
Home | Imprint | This part of the site doesn't use cookies.