How can I delete a directory with other directories and images and php files in it using PHP
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3338123/how-do-i-recursively-delete-a-directory-and-its-entire-contents-filessub-dirs">How do I recursively delete a directory and its entire contents (files+sub dirs) in PHP?</a>  </p>
</blockquote>



<p>How can I delete a directory with other directories and images and php files in it using PHP.</p>

<p>Here is what I'm trying below but with no success.</p>

<pre><code>unlink("./members/9/");
rmdir("./members/9/");
</code></pre>
