Location of a directory created with mkdir in PHP
<p>I've been trying a bunch of stuff with creating zips and files and whatnot with php, and it's safe to say I messed up quite a few times...</p>

<p>My most recent:</p>

<pre><code>$tmpp = tempnam('../test','mod');
echo "&lt;br/&gt;"."&lt;br/&gt;".basename($tmpp).'&lt;br/&gt;'."&lt;br/&gt;".$tmpp.'&lt;br/&gt;'."&lt;br/&gt;";
echo mkdir(basename('../test/'.$tmpp));
</code></pre>

<p>I meant to do</p>

<pre><code>$tmpp = tempnam('../test','mod');
echo "&lt;br/&gt;"."&lt;br/&gt;".basename($tmpp).'&lt;br/&gt;'."&lt;br/&gt;".$tmpp.'&lt;br/&gt;'."&lt;br/&gt;";
echo mkdir('../test/'.basename($tmpp));
</code></pre>

<p>Oh well though, mistake is made. Where is this just created directory? How can I see all the other files and directories and things as well as the tmp folder?</p>

<p>edit: long story short: I've created a bunch of files and directories that I can't account for and I want to be able to find them on clean then off my server. How can I view ALL the files on my server, including in the tmp folder?</p>
