Re: Directory - exist or not ? :)
| From: | James, Yz | Date: | Tue, 15 May 2001 18:13:42 +0000 |
| Subject: | Re: Directory - exist or not ? :) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52898@lists.php.net to get a copy of this message | ||
Hi There,
<?
$dir_to_check = "/this/dir";
if (!is_dir($dir_to_check)) {
echo "No directory here";
} else {
echo "Bingo.";
}
?>
James.
""Scream"" <scream@w.pl> wrote in message
news:9drq8v$ngb$1@toye.p.sourceforge.net...
> Hi,
>
> I've got a one simple question. How I can check directory exist or not ?
> Plz, help me :) TIA !
>
>
> --
> regards, - scream ->> scream(at)w.pl
> |||| ICQ#46072336 ||| GG#480681 ||||
> <<< Artificial Reins Productions >>>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>