Source Code:
(back to article)
<?php $file = '/path/to/symlink'; if (is_link($file)) { echo 'The path is a symbolic link'; } else { echo 'The path is not a symbolic link'; }
Result:
Report an issue