note 68721 added to function.is-file
| From: | SimonCharest at gmail dot com | Date: | Tue, 08 Aug 2006 17:39:36 +0000 |
| Subject: | note 68721 added to function.is-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115668@lists.php.net to get a copy of this message | ||
In rlh's example, "$ext=explode('.',$document);" is only good if you
consider that the filename only possesses a single dot (".") and that it is right before
the extension. You should get the last dot's position with the strRPos() function instead.
Another note : some files might not even have an extension (i.e.: mostly under Linux/Unix).
----
Server IP: 66.207.199.35
Probable Submitter: 142.213.24.8 (proxied: 1.1 D00WMPPRX01)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.is-file.php
Edit -- https://master.php.net/note/edit/68721
Del: integrated -- https://master.php.net/note/delete/68721/integrated
Del: useless -- https://master.php.net/note/delete/68721/useless
Del: bad code -- https://master.php.net/note/delete/68721/bad+code
Del: spam -- https://master.php.net/note/delete/68721/spam
Del: non-english -- https://master.php.net/note/delete/68721/non-english
Del: in docs -- https://master.php.net/note/delete/68721/in+docs
Del: other reasons-- https://master.php.net/note/delete/68721
Reject -- https://master.php.net/note/reject/68721
Search -- https://master.php.net/manage/user-notes.php