note 8659 deleted from function.is-link by vincent
| From: | vincent@php.net | Date: | Sat, 16 Aug 2003 21:26:21 +0000 |
| Subject: | note 8659 deleted from function.is-link by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54489@lists.php.net to get a copy of this message | ||
Note Submitter: hysteria@ufuria.org
----
If is_link() tests a link of which the destination file is invalid (deleted or whatever) it will
return false. Similarly, filetype() will return a blank instead of "link". So you can use
!filetype() to check for broken links.