IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • Api
  • ApiCode
  • Attach
  • Cache
  • Cloud
  • Convert
  • Credit
  • Database
  • DateTime
  • Env
  • File
  • Ftp
  • IBOS
  • Image
  • Mail
  • Module
  • Org
  • Page
  • PHPExcel
  • String
  • System
  • Upgrade
  • Url
  • WebSite
  • Xml
  • XMLParse

Class Ftp

Namespace: application\core\utils
Copyright: Copyright © 2012-2013 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/core/utils/Ftp.php

Methods summary

public static self
# getInstance( type $config = array() )

Parameters

$config

Returns

self
public
# __construct( array $config = array() )

构造器

构造器

Parameters

$config
配置数组
public integer
# upload( string $source, string $target )

上传

上传

Parameters

$source
$target

Returns

integer
public integer
# connect( )

链接

链接

Returns

integer
public integer
# ftpConnect( string $ftpHost, string $userName, string $password, string $ftpPath, string $ftpPort = 21, integer $timeout = 30, integer $ftpssl = 0, string $ftpPasv = 0 )

FTP连接

FTP连接

Parameters

$ftpHost
$userName
$password
$ftpPath
$ftpPort
$timeout
$ftpssl
$ftpPasv

Returns

integer
public string
# error( )

获取错误

获取错误

Returns

string

Constants summary

integer FTP_ERR_SERVER_DISABLED
# -100
integer FTP_ERR_CONFIG_OFF
# -101
integer FTP_ERR_CONNECT_TO_SERVER
# -102
integer FTP_ERR_USER_NO_LOGGIN
# -103
integer FTP_ERR_CHDIR
# -104
integer FTP_ERR_MKDIR
# -105
integer FTP_ERR_SOURCE_READ
# -106
integer FTP_ERR_TARGET_WRITE
# -107
IBOS open source API documentation generated by ApiGen