function drupal_ftp_ftp_object

cis7 destinations.ftp.inc drupal_ftp_ftp_object($server, $port, $user, $pass, $dir, $pasv)
cle7 destinations.ftp.inc drupal_ftp_ftp_object($server, $port, $user, $pass, $dir, $pasv)
elmsmedia7 destinations.ftp.inc drupal_ftp_ftp_object($server, $port, $user, $pass, $dir, $pasv)
icor7 destinations.ftp.inc drupal_ftp_ftp_object($server, $port, $user, $pass, $dir, $pasv)
meedjum_blog7 destinations.ftp.inc drupal_ftp_ftp_object($server, $port, $user, $pass, $dir, $pasv)
mooc7 destinations.ftp.inc drupal_ftp_ftp_object($server, $port, $user, $pass, $dir, $pasv)

creates a new ftp object. if any elements of ftp_map are missing, they'll be filled with the server defaults.

3 calls to drupal_ftp_ftp_object()
backup_migrate_destination_ftp::ftp_object in sites/all/modules/ulmus/backup_migrate/includes/destinations.ftp.inc
drupal_ftp_connect in sites/all/modules/ulmus/backup_migrate/includes/destinations.ftp.inc
The drupal_ftp_connect function This function connects to an FTP server and attempts to change into the directory specified by the fourth parameter, $directory.
drupal_ftp_connected in sites/all/modules/ulmus/backup_migrate/includes/destinations.ftp.inc
The drupal_ftp_connected function This function queries the FTP server with the ftp_systype command to check if the connection is still alive. It returns TRUE on success or FALSE on disconnection.

File

sites/all/modules/ulmus/backup_migrate/includes/destinations.ftp.inc, line 113
Functions to handle the FTP backup destination.

Code

function drupal_ftp_ftp_object($server, $port, $user, $pass, $dir, $pasv) {
  $ftp = new stdClass();

  $ftp->__server = $server;
  $ftp->__port = $port;
  $ftp->__user = $user;
  $ftp->__password = $pass;
  $ftp->__directory = $dir;
  $ftp->__pasv = $pasv;

  return $ftp;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.