PHP Classes


Recommend this page to a friend!

      File cache class  >  All threads  >  permissions  >  (Un) Subscribe thread alerts  
Summary:cache is created but not with write permissions
Date:2008-09-21 11:35:10
Update:2008-09-21 18:15:06

  1. permissions   Reply   Report abuse  
mike - 2008-09-21 11:35:11

i'm using your class on mac osx. the cache folder has chmod 777, and the cache file gets created, but only as -rw-r--r-- , that's why I am getting "could not open cache for writing" and then "could not open cache for apending" errors. shouldn't the cache file be writeable by everybody?

i don't understand what I am doing wrong. if you have a moment, please let me know how to fix this.

many thanks in advance,

  2. Re: permissions   Reply   Report abuse  
Manuel Lemos - 2008-09-21 16:29:42 - In reply to message 1 from mike
You need to call the umask function to set the default permissions of the files you create.

  3. Re: permissions   Reply   Report abuse  
mike - 2008-09-21 18:15:06 - In reply to message 2 from Manuel Lemos
thank you very much -- that really was it.