Re: Directory or a file?

From: Date: Tue, 22 Aug 2000 23:32:41 +0000
Subject: Re: Directory or a file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13237@lists.php.net to get a copy of this message
On Wed, 23 Aug 2000, 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? filetype() may be useful, which returns a string value for fifo, char, dir, block, link, file, and unknown. http://zend.php.net/manual/function.filetype.php Matt

« previous php.general (#13237) next »