note 31719 added to control-structures.continue
| From: | acidfilez at nexusnet dot cl | Date: | Thu, 01 May 2003 12:09:46 +0000 |
| Subject: | note 31719 added to control-structures.continue | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47344@lists.php.net to get a copy of this message | ||
$path="/homw/user/www";
if (is_dir("$path/")) // add the extra slash '/'
{
//yes
}
else
{
//no
}
the path needs to end in /
so it can detect if its a directory.
--
http://www.php.net/manual/en/control-structures.continue.php
http://master.php.net/manage/user-notes.php?action=edit+31719
http://master.php.net/manage/user-notes.php?action=delete+31719
http://master.php.net/manage/user-notes.php?action=reject+31719