Jump to content


setting permissions for a directory on creation (windows)

  • Please log in to reply
1 reply to this topic

#1 tomfmason

  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 03 September 2006 - 12:48 AM

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.

$dir = "./" . $_SESSION['username'] . "." . date(Ymd);
if (is_dir($dir) == false) {

Any suggestions as to why this file is being created with read only access?

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux

#2 hobojjr

  • Members
  • PipPip
  • Member
  • 11 posts

Posted 04 September 2006 - 04:57 PM

Yes, everyone on a shared hosting has the problem.

No one as of yet showed a solution that doesn't invole php ftp.


read the comment by "Han Van den Hoof"

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users