unlink() permissions

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: unlink() permissions

Post by johnj » Wed Jun 12, 2013 5:50 am

to unlink expired files, you must have write permission on those files.

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: unlink() permissions

Post by johnj » Thu Jun 13, 2013 9:59 pm

In any filesystem, you ought to have read access to the folder/directory in order to access a file in it - this is implied.

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: unlink() permissions

Post by johnj » Thu Jun 13, 2013 10:05 pm

maybe the exec() function php might be useful to you to run commands from php on your NAS.
http://php.net/manual/en/function.exec.php

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests