PHP 8.5.0 Alpha 1 available for testing

Voting

: min(eight, two)?
(Example: nine)

The Note You're Voting On

neverpanic->gmail[com]
18 years ago
For me (Debian Sarge VPS) is_link returns true even for directories if you don't add a trailing slash to the filename.
<?php
if ($dir{strlen($dir)-1} == '/') $dir = substr($dir, 0, -1);
is_link($dir);
?>
This works for me. It can't detect a symlink somewhere in a complete path, though (i.e. is_link(/www/somedir/file.php) will return false, just as is_link(/www/) would)

<< Back to user notes page

To Top