graham23s Posted June 13, 2007 Share Posted June 13, 2007 Hi Guys, i was wondering if it was possible using php to display how much in mb or gb how many files in afolder e.g folder <-- containg 1,000mb of data thanks for any help Graham Quote Link to comment https://forums.phpfreaks.com/topic/55477-solved-possible-to-display-contents-in-mbgb/ Share on other sites More sharing options...
Wildbug Posted June 13, 2007 Share Posted June 13, 2007 Yep, it's possible. See user notes for filesize() for some solutions. Alternatively, you could use system() to execute your local ls or dir with the appropriate path and enabled switches and parse that output. It's not a portable solution, but might work for you. Don't forget to escape user input. Quote Link to comment https://forums.phpfreaks.com/topic/55477-solved-possible-to-display-contents-in-mbgb/#findComment-274166 Share on other sites More sharing options...
graham23s Posted June 13, 2007 Author Share Posted June 13, 2007 i'll look into those thanks mate:) Graham Quote Link to comment https://forums.phpfreaks.com/topic/55477-solved-possible-to-display-contents-in-mbgb/#findComment-274172 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.