note 82311 added to function.is-writable
| From: | 27keithatgmaildotcom at osu1 dot php dot net | Date: | Sat, 05 Apr 2008 00:42:53 +0000 |
| Subject: | note 82311 added to function.is-writable | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137946@lists.php.net to get a copy of this message | ||
I can't understand why this function checks if the filename exists, isn't that what
file_exists is for?
I think it should return TRUE if and only if the file "is writable"..
I know there are plenty of other ways to check if a filename is valid and writable, but it would be
so nice and clean to simply:
if (is_writable($new_name)) {//write the new/nonexistent file}
----
Server IP: 69.147.83.197
Probable Submitter: 76.252.70.219
----
Manual Page -- http://www.php.net/manual/en/function.is-writable.php
Edit -- https://master.php.net/note/edit/82311
Del: integrated -- https://master.php.net/note/delete/82311/integrated
Del: useless -- https://master.php.net/note/delete/82311/useless
Del: bad code -- https://master.php.net/note/delete/82311/bad+code
Del: spam -- https://master.php.net/note/delete/82311/spam
Del: non-english -- https://master.php.net/note/delete/82311/non-english
Del: in docs -- https://master.php.net/note/delete/82311/in+docs
Del: other reasons-- https://master.php.net/note/delete/82311
Reject -- https://master.php.net/note/reject/82311
Search -- https://master.php.net/manage/user-notes.php