1.37 kiriwrite_filepermissions

kiriwrite_filepermissions checks if the file permissions of a file to see if they are valid and returns a value if the file permissions are invalid.

Parameters:

kiriwrite_filepermissions(filename, read, write, filemissingskip);

Usage:

$file_permissions = kiriwrite_filepermissions("test.html", 1);
$file_permissions = kiriwrite_filepermissions("test.html", 1, 1); $file_permissions = kiriwrite_filepermissions("test.html", 1, 0, 1);

filename
Specifies the filename to check for valid file permissions. This is required each time the subroutine is called.

read
Check if the file with the filename given has valid read permissions.

write
Check if the file with the filename given has valid write permissions.

filemissingskip
If the file is missing then skip the permissions check (normally used if a file doesn't exist and then has to be created).