is_link
]Podporované v PHP 4, PHP 5
Syntax
bool is_link ( string $filename )
Popis
Príkaz jazyka PHP
Tells whether the given file is a symbolic link.
filename - Path to the file.
Returns TRUE if the filename exists and is a symbolic link, FALSE otherwise.
Príklad
<?php
$link = 'uploads';
if (is_link($link))
{
echo(readlink($link));
}
else
{
symlink('uploads.php', $link);
}
?>
$link = 'uploads';
if (is_link($link))
{
echo(readlink($link));
}
else
{
symlink('uploads.php', $link);
}
?>
Pozri aj
is_dir, is_file, readlink
]