when I try to upload a pic with pnavatar, the file permissions are set to 600 rather then 644. Is there a way to change that?
Posted: 08.05.2006, 23:02
Invité
rank:
1
registered:
December 2003
Status:
offline
last visit:
06.03.05
Posts:
0
I'm having the same problem. Any help?
Posted: 09.05.2006, 17:48
rank:
Site Admin
registered:
December 2003
Status:
offline
last visit:
06.07.08
Posts:
260
php has a chmod function.
The syntax is
the function return true if it succed in executing the chmod command and false if it don't.
But the important thing is that mode shoud be written in octal notation so you should use 0644 not 644.
So I suggest in pnuser.php to change
to:
Please note that this is untested code becaus eI don't have this problem wich should be largely dependant of your server's php setup.
If you test it, please report here if it works or not.