View Single Post
Old 09-03-2010, 10:19 PM   #2 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

Are you sure your link property is a valid resource? While you're at it, there's no need to unlink() anything as ftp_get() will overwrite an existing file.

php Code:
public function get( $local, $remote, $mode = FTP_BINARY )
{
    return ( is_resource( $this->link ) ? ftp_get( $this->link, $local, $remote, $mode ) : false );
}
__________________
uʍop ǝpısdn sı ɹǝʇndɯoɔ ɹnoʎ sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
delayedinsanity is offline  
Reply With Quote