Results 1 to 6 of 6

Thread: rmdir gives Warning

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    rmdir gives Warning

    I'm on windows XP and rmdir gives me warning about permission denied for removing a directory but I created it using mkdir(dirname($fileName), 0777); Anything specific I'm missing? Thanks in advance.

  2. #2
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: rmdir gives Warning

    is there a file in the directory? it has to be empty for rmdir to work. And that includes no windows-generated hidden files such as thumbs.db
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: rmdir gives Warning

    It's an empty directory.

  4. #4
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: rmdir gives Warning

    hmm. i don't know the flags 0777 sets, but did you perhaps set it as a system folder on accident?
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: rmdir gives Warning

    What user account is PHP running under?
    Note that the manual specifies the mode parameter of mkdir is ignored under Windows.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: rmdir gives Warning

    Hey PG, I'm in Administrators Group. When I tried to port it on some Linux box here, it doesn't give an error. Even tried giving full control of the folders but still gives a warning and doesn't delete the directories. Any idea?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width