我怎樣才能獲得與codeigniter遠程文件的文件大小? 建立連接後,我想獲取properties.xml文件的大小。在ordinery ftp我會得到它沒有問題,但自從我開始使用codeigniter它是有點困難。codeigniter ftp獲取文件大小
這是在procedurel php;
$remote_filesize = ftp_size($conn_id, "properties.xml");
但我怎麼能在codeigniter中做到這一點?
if($this->ftp->connect($config))
{
/*here some magic code*/
}
的功能。如果你願意,你可以添加'$這個 - >負載>幫手(「號」);'庫擴展或在'$ size = byte_format(filesize($ item));'中 – elddenmedio