src/ET_Client.php
function GetLastModifiedDate($remotepath) 
	{
		$curl = curl_init($remotepath);
		curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, ET_Util::shouldVerifySslPeer($this->sslVerifyPeer));
		curl_setopt($curl, CURLOPT_NOBODY, true);
		curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
		curl_setopt($curl, CURLOPT_FILETIME, true);

		if (!empty($this->proxyHost)) {
			curl_setopt($curl, CURLOPT_PROXY, $this->proxyHost);
		}
		if (!empty($this->proxyPort)) {
			curl_setopt($curl, CURLOPT_PROXYPORT, $this->proxyPort);
		}
		if (!empty($this->proxyUserName) && !empty($this->proxyPassword)) {
			curl_setopt($curl, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);
			curl_setopt($curl, CURLOPT_PROXYUSERPWD, $this->proxyUserName.':'.$this->proxyPassword);
		}

		$result = curl_exec($curl);
		
		if ($result === false) {
			throw new Exception(curl_error($curl)); 
		}
		
		return curl_getinfo($curl, CURLINFO_FILETIME);
	}
function GetLastModifiedDate($remotepath) 
	{
		$curl = curl_init($remotepath);
		curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, ET_Util::shouldVerifySslPeer($this->sslVerifyPeer));
		curl_setopt($curl, CURLOPT_NOBODY, true);
		curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
		curl_setopt($curl, CURLOPT_FILETIME, true);

		if (!empty($this->proxyHost)) {
			curl_setopt($curl, CURLOPT_PROXY, $this->proxyHost);
		}
		if (!empty($this->proxyPort)) {
			curl_setopt($curl, CURLOPT_PROXYPORT, $this->proxyPort);
		}
		if (!empty($this->proxyUserName) && !empty($this->proxyPassword)) {
			curl_setopt($curl, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);
			curl_setopt($curl, CURLOPT_PROXYUSERPWD, $this->proxyUserName.':'.$this->proxyPassword);
		}

		$result = curl_exec($curl);
		
		if ($result === false) {
			throw new Exception(curl_error($curl)); 
		}
		
		return curl_getinfo($curl, CURLINFO_FILETIME);
	}
function GetLastModifiedDate ( $ remotepath ) { $ curl = curl_init ( $ remotepath ) ; curl_setopt ( $ curl , CURLOPT_SSL_VERIFYPEER , ET_Util :: shouldVerifySslPeer ( $ this -> sslVerifyPeer ) ) ; curl_setopt ( $ curl , CURLOPT_NOBODY , true ) ; curl_setopt ( $ curl , CURLOPT_RETURNTRANSFER , true ) ; curl_setopt ( $ curl , CURLOPT_FILETIME , true ) ; if ( ! empty ( $ this -> proxyHost ) ) { curl_setopt ( $ curl , CURLOPT_PROXY , $ this -> proxyHost ) ; } if ( ! empty ( $ this -> proxyPort ) ) { curl_setopt ( $ curl , CURLOPT_PROXYPORT , $ this -> proxyPort ) ; } if ( ! empty ( $ this -> proxyUserName ) && ! empty ( $ this -> proxyPassword ) ) { curl_setopt ( $ curl , CURLOPT_PROXYAUTH , CURLAUTH_BASIC ) ; curl_setopt ( $ curl , CURLOPT_PROXYUSERPWD , $ this -> proxyUserName . ':' . $ this -> proxyPassword ) ; } $ result = curl_exec ( $ curl ) ; if ( $ result === false ) { throw new Exception ( curl_error ( $ curl ) ) ; } return curl_getinfo ( $ curl , CURLINFO_FILETIME ) ; }
Returns last modified date of the URL

@param [type] $remotepath
@return string Last modified date
Returns last modified date of the URL