note 90279 added to function.substr-replace
| From: | gcdreak at farfaraway dot com | Date: | Tue, 14 Apr 2009 14:55:49 +0000 |
| Subject: | note 90279 added to function.substr-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-153208@lists.php.net to get a copy of this message | ||
This is a good method to check file chmod value:
<?php
$file = "../files/sample.txt";
$rights = decoct(fileperms($file));
echo "File rights: ".substr_replace($uprawnienia, "", 0, 3);
?>
----
Server IP: 82.177.164.100
Probable Submitter: 83.29.55.92
----
Manual Page -- http://www.php.net/manual/en/function.substr-replace.php
Edit -- https://master.php.net/note/edit/90279
Del: integrated -- https://master.php.net/note/delete/90279/integrated
Del: useless -- https://master.php.net/note/delete/90279/useless
Del: bad code -- https://master.php.net/note/delete/90279/bad+code
Del: spam -- https://master.php.net/note/delete/90279/spam
Del: non-english -- https://master.php.net/note/delete/90279/non-english
Del: in docs -- https://master.php.net/note/delete/90279/in+docs
Del: other reasons-- https://master.php.net/note/delete/90279
Reject -- https://master.php.net/note/reject/90279
Search -- https://master.php.net/manage/user-notes.php