How to create a web based file manager that can read across different platforms?
<p>I would like to try creating a PHP web file manager that could read on my machines. As I have a couple of PC and laptops, and I would like to create a central storage to store my files, documents, etc. Hence, I would like to create a web based file manager that can fulfill my need. I know there are a handful of free and opensource web file manager out there, but I would like to create my own so that I can tweak accordingly.</p>

<p>Hence I have some questions regarding how can I go about creating a file manager for such a purpose:</p>

<p>1) As I have both mac and win machines, how can my file manager be able to access the different platforms, and reading shared or portable drives as well?</p>

<p>2) I have done up to generating the files/folders:</p>

<pre><code>// declare the folder
$directory = "./";

// prepare to read directory contents
$dir = @opendir($directory);

// loop through the items
while ($file = readdir($dir))
{
    // check if it is a dir
    if (is_dir($file))
    {
        echo "dir: $file &lt;br /&gt;";   
    } else {

        echo "file: $file &lt;br /&gt;";  
    }

}

closedir($dir);
</code></pre>

<p>How do I create the links for these files etc?</p>

<p>Thank you very much.</p>
