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 Link to comment https://forums.phpfreaks.com/topic/47899-solved-what-does-it-mean-by-this-error/ 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 Link to comment https://forums.phpfreaks.com/topic/47899-solved-what-does-it-mean-by-this-error/#findComment-234088 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 Link to comment https://forums.phpfreaks.com/topic/47899-solved-what-does-it-mean-by-this-error/#findComment-234091 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 Link to comment https://forums.phpfreaks.com/topic/47899-solved-what-does-it-mean-by-this-error/#findComment-234095 Share on other sites More sharing options...
ted_chou12 Posted April 20, 2007 Author Share Posted April 20, 2007 thanks. Link to comment https://forums.phpfreaks.com/topic/47899-solved-what-does-it-mean-by-this-error/#findComment-234097 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.