Jump to content

umask woes


trinistorm
 Share

Recommended Posts

I spent three hours trying to figure out why unlink gave me :

Permission denied in D:\xampplite\htdocs\ids\lib\FileOper.php on line 101

It turned out that when i removed

umask(0666);

from my code I was able to unlink the files I wanted. However I always thought that umask only worked on Unix like systems. Is that worng? or perhaps a recent change. I'm using php 5.3.1.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...