09-03-2010, 10:19 PM
|
#2 (permalink)
|
|
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
|
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ʎ ɟı
|
|
|
|