O'Reilly logo

Programming PHP, 3rd Edition by Peter MacIntyre, Kevin Tatroe, Rasmus Lerdorf

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

filetype

Synopsis

string filetype(string path)

Returns the type of file given in path. The possible types are:

Fifo

The file is a fifo pipe.

Char

The file is a text file.

Dir

path is a directory.

Block

A block reserved for use by the filesystem.

Link

The file is a symbolic link.

File

The file contains binary data.

Socket

A socket interface.

Unknown

The file’s type could not be determined.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required