blueman378 Posted September 27, 2007 Share Posted September 27, 2007 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? Quote Link to comment Share on other sites More sharing options...
freakstyle Posted September 27, 2007 Share Posted September 27, 2007 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 Quote Link to comment Share on other sites More sharing options...
marcus Posted September 27, 2007 Share Posted September 27, 2007 Yep, you're trying to declare a variable inside single quotes. If echoed it would actually say the $subuser, instead of what $subuser is defined to. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.