Login   Register  
PHP Classes
elePHPant
Icontem

permissions

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

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

  1. permissions   Reply  
Picture of mike
mike
2008-09-21 11:35:11
hi,

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,
tench

  2. Re: permissions   Reply  
Picture of Manuel Lemos
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  
Picture of mike
mike
2008-09-21 18:15:06 - In reply to message 2 from Manuel Lemos
thank you very much -- that really was it.