Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7575791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:45:57+00:00 2026-05-30T16:45:57+00:00

I once used this wrong PHP script which created a 340 mode directories: <?php

  • 0

I once used this wrong PHP script which created a 340 mode directories:

<?php
 $uname = "secret";
 mkdir("/home/u251526215/public_html/user/profile/".$uname."", 755);
?>

The script above creates a 340 CHMOD directories. I’ve repaired the “755” to “0755” and it is now working perfectly. But for now, how can I delete the 340 directories which were already created? I have tried to delete them using FTP manager, but it kept saying error. I’ve tried to use rmdir() but it says directory not empty but it is completely empty!

Updated: All action to the directory; rename, move, copy, change permission and open are error returned

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:45:58+00:00Added an answer on May 30, 2026 at 4:45 pm

    Maybe there is a hidden file. I found this function to delete a directory with all contents:

    function delete_directory($dirname) {
       if (is_dir($dirname))
          $dir_handle = opendir($dirname);
       if (!$dir_handle)
          return false;
       while($file = readdir($dir_handle)) {
          if ($file != "." && $file != "..") {
             if (!is_dir($dirname."/".$file))
                unlink($dirname."/".$file);
             else
                delete_directory($dirname.'/'.$file);    
          }
       }
       closedir($dir_handle);
       rmdir($dirname);
       return true;
    }
    

    Source http://www.ozzu.com/programming-forum/php-delete-directory-folder-t47492.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Once, I used this query to select the number of items in order to
I saw something once for wrappers used to do this but it asked for
Whats wrong with this function? function yahooWeather(){ var loadPage = 'yahooweather.php?p='+ $(#myCity).val(); $(#yahoo).html('<img src=loading.gif
I hase used this code : require_once(app/Mage.php); Mage::app(); $fullImagePath = app/code/local/Mycompany/Import/data/images/test_picture.jpg; $product = Mage::getModel('catalog/product');
I used once a very nice emacs function that set all my windows (emacs
Once I have programmed GUI with Java and have used Form Layouts. Form layout
The following code is being used to disable a Submit button once it has
Once I've created a variable in the immediate window in C# (VS2008), is there
hi this is my first attempt at JavaScript: the following function is used to
I have a multi part question for a php script file. I am creating

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.