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? Link to comment https://forums.phpfreaks.com/topic/70930-cant-delete-any-directories-with-php/ 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 Link to comment https://forums.phpfreaks.com/topic/70930-cant-delete-any-directories-with-php/#findComment-356620 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. Link to comment https://forums.phpfreaks.com/topic/70930-cant-delete-any-directories-with-php/#findComment-356624 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.