note 82311 deleted from function.is-writable by tularis
| From: | tularis@php.net | Date: | Sat, 05 Apr 2008 08:35:11 +0000 |
| Subject: | note 82311 deleted from function.is-writable by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-137955@lists.php.net to get a copy of this message | ||
Note Submitter: 27 keith at gmail dot com
Reason: in docs
----
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}