Chad11 Posted May 11, 2007 Share Posted May 11, 2007 Hey guys, i am new into PHP programming and i am trying to get the total size of a directory including all its sub-directories....i can get the directory size but not the sub directories....any way out? Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/50985-directory-size/ Share on other sites More sharing options...
per1os Posted May 11, 2007 Share Posted May 11, 2007 Recursion and addition. http://en.wikipedia.org/wiki/Recursion www.php.net/dir Have fun!!! Glad its not me doing it =) Quote Link to comment https://forums.phpfreaks.com/topic/50985-directory-size/#findComment-250844 Share on other sites More sharing options...
Chad11 Posted May 11, 2007 Author Share Posted May 11, 2007 I mean can't somebody get me a code for it because i've been searching google whole day and i found none Quote Link to comment https://forums.phpfreaks.com/topic/50985-directory-size/#findComment-250852 Share on other sites More sharing options...
per1os Posted May 11, 2007 Share Posted May 11, 2007 I think you want the freelance forum bud. Quote Link to comment https://forums.phpfreaks.com/topic/50985-directory-size/#findComment-250857 Share on other sites More sharing options...
redbullmarky Posted May 11, 2007 Share Posted May 11, 2007 yep. this forum is to help with code you already have, not code you want others to write for you. we all (including those that could help) have to start somewhere - and tutorials and the manual are as good a place as any. as frost said - if you want the script written for you, post in the freelance forum for paid help. Quote Link to comment https://forums.phpfreaks.com/topic/50985-directory-size/#findComment-250861 Share on other sites More sharing options...
Chad11 Posted May 11, 2007 Author Share Posted May 11, 2007 uhhh...ok then ty still Quote Link to comment https://forums.phpfreaks.com/topic/50985-directory-size/#findComment-250870 Share on other sites More sharing options...
sasa Posted May 11, 2007 Share Posted May 11, 2007 goto http://hr.php.net/manual/en/function.stat.php and look user note Quote Link to comment https://forums.phpfreaks.com/topic/50985-directory-size/#findComment-250907 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.