File Permission problem

PhilipL

Verified User
Joined
Mar 12, 2006
Messages
17
Hi,

Since I installed suPHP with PHP 4.4.3 and PHP 5 from the How to from here I have a bit of a problem.

When a PHP script creates a file, the file gets created with only 600 (owner read & write) permissions.

Is there a way to set PHP or something else that when files are being created that the default permissions are 644?

Thanks for the help.

Phil
 
Perhaps you can do it with php chmod.
If you run suphp then all run perfectly with 0600, isn't it ?
If yes why change ?
 
Hi,

Thanks for the help.

PHP files work ok with 600, but other files like .css files dont.

For example, in vbulletin if you set the option to have save the css style in a seperate css file, php creates the file but with the permission 600.

Thats why I am asking if there is a way to set a different permission when creating files without having to chmod them afterwards.

Phil
 
Back
Top