PHP 8.5.0 Alpha 1 available for testing

Voting

: max(zero, three)?
(Example: nine)

The Note You're Voting On

Anonymous
20 years ago
### Symbolic links are resolved ###

If you pass a symlink (unix symbolic link) as parameter, is_file will resolve the symlink and will give information about the refered file. For example:

touch file
ln -s file link
echo '<? if (is_file("link")) echo "y\n"; ?>' | php -q

will print "y".

is_dir resolves symlinks too.

<< Back to user notes page

To Top