ftp_base::mdtm() –

You appear to be a bot. Output may be restricted

Description

Usage

ftp_base::mdtm( $pathname );

Parameters

$pathname
( mixed ) required

Returns

void

Source

File name: wordpress/wp-admin/includes/class-ftp.php
Lines:

1 to 12 of 12
  function mdtm($pathname) {
    if(!isset($this->_features["MDTM"])) {
      $this->ftp_base::PushError("mdtm", "not supported by server");
      return FALSE;
    }
    if(!$this->_exec("MDTM ".$pathname, "mdtm")) return FALSE;
    if(!$this->ftp_base::_checkCode()) return FALSE;
    $mdtm = preg_replace("/^[0-9]{3} ([0-9]+).*$/s", "\\1", $this->_message);
    $date = sscanf($mdtm, "%4d%2d%2d%2d%2d%2d");
    $timestamp = mktime($date[3], $date[4], $date[5], $date[1], $date[2], $date[0]);
    return $timestamp;
  }
 

 View on GitHub View on Trac