Re: Directory or a file?
| From: | Joseph H Blythe | Date: | Tue, 22 Aug 2000 23:36:03 +0000 |
| Subject: | Re: Directory or a file? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13042@lists.php.net to get a copy of this message | ||
Adam Charnock wrote:
> Hi all. Is there a function that will tell you if a location is a file or a
> directory? Because files dont have to have an extention on the end of them. Eg:
>
> /my/server/www/data
>
> This could be a file called data or a folder called data. How can you make
> PHP tell the difference?
>
is_dir()
under file functions
regards
Joseph