Check if the filename is a symbolic link in PHP
Description
The following code shows how to check if the filename is a symbolic link.
Example
<?php//w w w . j a va2s . c om
$link = 'images';
if (is_link($link)) {
echo(readlink($link));
} else {
symlink('uploads.php', $link);
}
?>