Name
test
Synopsis
$result = test($test, $filename)
This performs the test test
on the file
filename
. If the test is successful, 1 is
returned, otherwise
is returned. The available tests are as follows:
- b
Block mode device
- c
Character mode device
- d
Directory
- p
Named pipe
- s
Nonempty regular file
- f
Regular file
- u
Setuid file
- g
Setgid file
Get MySQL and mSQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.