Are there PHP commands to change file access permissions/owner of a symlink file as opposed to those of the object the symlink points to?
From the shell I can
$ mkdir adir
$ ln -s adir alink
$ chmod 0700 alink -- changes permissions of directory adir
$ chmod -h 0700 alink -- changes permissions of file alink
but I don't see how to do the last of these in PHP other than by invoking a shell, e.g. with exec()
.