ted_chou12 Posted April 20, 2007 Share Posted April 20, 2007 Warning: unlink(users/storage/test/) [function.unlink]: Is a directory in /home/username/public_html/test.php on line 2 I am tryin to delete a folder by: $write1 = unlink("users/storage/test/"); however, it doesnt seem to work very well. Thanks Ted Quote Link to comment Share on other sites More sharing options...
Michael Lasky Posted April 20, 2007 Share Posted April 20, 2007 Try using rmdir() http://us2.php.net/manual/en/function.rmdir.php Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted April 20, 2007 Author Share Posted April 20, 2007 thanks, unlink() doesnt work with directories? ??? Thanks Ted Quote Link to comment Share on other sites More sharing options...
taith Posted April 20, 2007 Share Posted April 20, 2007 nope! unlink() is only for removing files... rmdir() removes directories Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted April 20, 2007 Author Share Posted April 20, 2007 thanks. 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.