note 44682 added to function.is-dir
| From: | shevegen at linuxmail dot org | Date: | Thu, 12 Aug 2004 21:18:22 +0000 |
| Subject: | note 44682 added to function.is-dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-74562@lists.php.net to get a copy of this message | ||
is_dir is particularly useful if you want to generate HTML content based on a query whether any
property within dir() is is_dir.
For example, I combine it with displaying a little directory image (a png file with transparency)
if( is_dir($val) ) // where $val is a member of an array which is being queried now
{ IMGn("DIR.png","","DirectoryImage");
// where IMGn is a short function, which echos an <img> tag with some additional things like
an alt tag or maybe some style and class rules.
Those icons are VERY helpful if you ask me.
----
Manual Page -- http://www.php.net/manual/en/function.is-dir.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44682
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44682&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44682&report=yes
Search -- http://master.php.net/manage/user-notes.php