Do you know any browser that can be added into a page directly to browse files on current server like we do via ftp but the difference is it will be browsing the files of current server where its sitting.. Should be able to add it in a page and perform custom functions on file.
You can't list all files on the server when on shared hosting, since PHP runs under your account (eg. /home/jim/) and has no right to access other users files (eg. /home/ben/). But you could list all files under your account: $dir = scandir("/home/jim/"); foreach($dir as $file) { echo $file; echo "<br>"; } PHP:
or: <?php //directory path $dir = "/home/jim/"; foreach (glob($dir . '*.*') as $file) { echo $file; echo "<br />"; } ?> PHP: But what I think what you'd prefer is something more like this; http://autoindex.sourceforge.net/
Thanks for your replies, I didn't actually wanted to list all files, but a specific directory where I have access and all sub structure, I had idea of scandir but I wanted pre-built full functionality file browser. But no worries, I have build one myself. Will also see auto index for any future use, Thanks.