How does one delete a folder?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • webandwe
    New Member
    • Oct 2006
    • 142

    How does one delete a folder?

    Hi,

    I searched php.com, search engines, etc. but cannot find anything on how to delete a folder with php, all that I get is how to delete files.

    I tried unlik and ftp_delete but none are working.

    Does anyone know how to do it?

    Kind Regards
  • ronnil
    Recognized Expert New Member
    • Jun 2007
    • 134

    #2
    use rmdir() for deleting directories, and ofcourse make sure you have the permission to do so ;)

    http://www.php.net/manual/en/function.rmdir.php for more info

    Comment

    • webandwe
      New Member
      • Oct 2006
      • 142

      #3
      Thanks Man, it's working

      I don't know what you typed in to get it but thanks.

      Comment

      • pbmods
        Recognized Expert Expert
        • Apr 2007
        • 5821

        #4
        Originally posted by webandwe
        I don't know what you typed in to get it but thanks.


        The PHP manual is your friend :)

        Comment

        Working...