scandir fail to open directory
<p>I am having trouble with <code>scandir()</code>. I am trying to display the files in my <code>snaps</code>-directory on a page under the subdomain in my cloud.</p>

<p>This is the PHP I used.</p>

<pre><code>$files = scandir('./snaps');
print_r($files);
</code></pre>

<p>and this is the error.</p>

<pre><code>Warning: scandir(./snaps) [function.scandir]: failed to open dir: No such file or directory in /home/u703778423/public_html/cloud/index.php on line 39

Warning: scandir() [function.scandir]: (errno 2): No such file or directory in /home/u703778423/public_html/cloud/index.php on line 39
</code></pre>

<p>I have no idea what else to do.</p>
