How do I use Linux commands in PHP code to fetch all files names and their size and path of files from all directories and subdirectories.
I am running a scan code. where I need to fetch the files and perform a scan. The issue is that when I run on linux server it takes too long to perform the scan. So, i thought of adding linux commands to my php script and check that if server is linux then instead of my function, those coomands can be used and hence increase increase the speed of scan.
-prune
/proc
and/sys
as they do not contribute to disk space consumption. – Joseph R. Aug 30 '13 at 11:38