ftp_size()

It returns the size of the given file

Example

<?php

$ftpId = ftp_connect(‘ftp.phpcodez.com’);

$login = ftp_login($ftpId, ‘anonymous’, ‘user@phpcodez.com’);

ftp_size($ftpId, “test”) or die(“Failed”);

ftp_quit($ftpId);

?>

Share