Hi!
I have a problem. When fopen() makes a new file, i don't have permissions to change filename and delete the file through my ftp-client. I have tried with different permission settings in the function, like a, w+ and x+, but the permissions are always the same : -rw-r--r--
This is the same permissions as other files at the server which I actually can rename and delete. So, how do I make files with php-scripting that I can rename and delete?
Thanks a lot!
script:
//create files within folder
mkdir($foldername, 0777);
$new = fopen($foldername . '/database.php', 'a');
fwrite($new, $string);
fclose($new);