Jump to content

cant delete any directories with php


blueman378

Recommended Posts

ok heres whats happening i have tried 8 completly different scripts to either delete or move the directory however they all do the exact same thing...

that is they all do absolutly nothing

 

i am getting no errors what so ever but it doesnt affect the directory at all

 

the latest script is simply moving it maybe you can help.

 

$file = '/home/vol2/byethost13.com/b13_1013561/mydoodle.byethost13.com/htdocs/users/.$subuser';

if (is_dir("$file"))
{
rename ("$file", "../../delete/$file") or die ("Could not move directory");}

 

do you see anything wrong?

 

Link to comment
Share on other sites

i'm not sure if you are looking for a solution or if you want to do it yourself, if you want to do it yourself here's the url to get you started down the right road:

http://us.php.net/manual/en/function.rmdir.php

 

if you are looking for scripts, please continue your search on google. its a coder's best friend. besides coffee and babes.

 

good luck

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.