save the list of sub directories in path
<p>I want to point to a folder and then the php script should take the list of sub directories from that folder and save it into the database</p>

<p>Can anyone provide a php script which would do the same
thanks in advance</p>

<pre><code>$path = "new/cat1/";
</code></pre>

<p>want to get the list of sub-directories inside the $path folder 
and save those sub-directory names to database. No need to take the filename of filelist</p>
