RecursiveIterator copying file to folder where it doesn't exist
<p>I've been trying to come up with a way to recursively add a specific file to all newly created folders.</p>

<p>All I've been able to come up with is listing all the folders/files.</p>

<pre><code>foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator('.')) as $filename)
{
        echo "$filename\n &lt;br&gt;";
}
</code></pre>

<p>Any direction would be grateful.</p>
