User Tools

Site Tools


ja:rule:fle:ファイルのパーミッションを検証する

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ja:rule:fle:ファイルのパーミッションを検証する [2017/10/26 11:13] – created yohgakija:rule:fle:ファイルのパーミッションを検証する [2017/10/26 11:15] (current) – [適合コード例] yohgaki
Line 23: Line 23:
 $perm = 0600; $perm = 0600;
 $stat = stat($file); $stat = stat($file);
-if (($stat['mode'] & 0600) !== 0600) {+if (($stat['mode'] & 0777) !== 0600) {
     throw new Exception('Invalid file permission');     throw new Exception('Invalid file permission');
 } }
ja/rule/fle/ファイルのパーミッションを検証する.txt · Last modified: 2017/10/26 11:15 by yohgaki

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki