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
https://forums.phpfreaks.com/topic/70930-cant-delete-any-directories-with-php/
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.