Hi
I would like to fix this script to get the total size of the mentioned FTP account since this script is not working currently.
<?
$hostname = 'host name';
$username = ''xxxx at [login to view URL]";
$password = 'xxxxxx';
$conn_idt = ftp_connect($hostname);
$login = ftp_login($conn_idt, $username, $password);
$pathx = '/';
function filesize_recursive($pathx){
if(is_file($pathx)) return ftp_size($conn_idt, $pathx);
$totalSize = 0;
foreach(glob($pathx."/*") as $fn)
$totalSize += filesize_recursive($fn);
return $totalSize;
}
$usedSpace = "".filesize_recursive($pathx)."";
echo $usedSpace;
?>
I am just testing out the script but I notice the use of glob() which I believe is a local function. The fix is not trivial but needs a bit of recoding
Hello Sir
I have read your requirement and I am ready to work with you ..we will work till your 100% satisfaction .
I can fix it. as like you are calling the recursion function then you may implement the global function in it. and you will call the all dir and file recursively.
We are working from last 7 years in site development field through Php ,Mysql,Javascript, Ajax, Drupal ,Cakephp, Cordeighiter, Zend, Wordpress , Oscommerce, Joomla Etc. We have highly qualified guys who are working part time and full time. I am also in site development Field and I have knowledge about these technology Because I am also a devloper from last 7 years. So we can understand your requirement easily and we will work in low price with high quality.
If you have any question then let me know.
Thanks
Strange to See what took 2 hours to do this task..?? Creating a Registration Page is easy. If you haven't found the required candidate, please contact me.
Accurate, fast and reasonable freelancing.
Hope to hear soon from you
Regards
Vishal parkash
I have an experience of 5+ years in web development. I have worked on following technologies PHP,JAVA,MYSQL,ORACLE,AJAX,Jquery,JS,XML,HTML,Google Map, wordpress,Boonex, joomla,magento,CAKE PHP,Yii Framework. I can do this