tomfmason Posted September 3, 2006 Share Posted September 3, 2006 I have an issue. I have created several temp directories and when I am done with them I want to delete them. Well I keep getting the error Permission denied. I think that I have set the permissions properly for the apache group and I could easily delete the file manuly but I don't want to do that.When I look at the properties for that directory I see that it is read only. Why is this. I am using the following code to create the dir.[code=php:0]$dir = "./" . $_SESSION['username'] . "." . date(Ymd);if (is_dir($dir) == false) { mkdir($dir);}[/code]Any suggestions as to why this file is being created with read only access? Quote Link to comment Share on other sites More sharing options...
hobojjr Posted September 4, 2006 Share Posted September 4, 2006 Yes, everyone on a shared hosting has the problem.No one as of yet showed a solution that doesn't invole php ftp.http://ca.php.net/mkdirread the comment by "Han Van den Hoof" 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.