Michiel
03-20-2004, 05:16 PM
Hi there,
I'm having some troubles with the mkdir function and the file permissions. I've got the following code in my script:
mkdir($this->_aConfig['path'], 0644);
This is supposed to create a new directory that is readible and writeble for the php-script itself. So I want to be able to create files and sub-derictories inside this newly created directory.
The directory is in fact being made. However the file permissions appear to be 550 (according to WS-FTP). So the script is not allowed to write in the directory ....
Can anyone tell me how I should change the code, for it to work?
Thanx in advance! Michiel
I'm having some troubles with the mkdir function and the file permissions. I've got the following code in my script:
mkdir($this->_aConfig['path'], 0644);
This is supposed to create a new directory that is readible and writeble for the php-script itself. So I want to be able to create files and sub-derictories inside this newly created directory.
The directory is in fact being made. However the file permissions appear to be 550 (according to WS-FTP). So the script is not allowed to write in the directory ....
Can anyone tell me how I should change the code, for it to work?
Thanx in advance! Michiel