Query: is_link
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IS_LINK(3) 1 IS_LINK(3) is_link - Tells whether the filename is a symbolic linkSYNOPSISbool is_link (string $filename)DESCRIPTIONTells whether the given file is a symbolic link.PARAMETERSo $filename - Path to the file.RETURN VALUESReturns TRUE if the filename exists and is a symbolic link, FALSE otherwise.EXAMPLESExample #1 Create and confirm if a file is a symbolic link <?php $link = 'uploads'; if (is_link($link)) { echo(readlink($link)); } else { symlink('uploads.php', $link); } ?>ERRORS/EXCEPTIONS Upon failure, an E_WARNING is emitted.NOTESNote The results of this function are cached. See clearstatcache(3) for more details. Tip As of PHP 5.0.0, this function can also be used with some URL wrappers. Refer to "Supported Protocols and Wrappers" to determine which wrappers support stat(3) family of functionality.SEE ALSOis_dir(3), is_file(3), readlink(3). PHP Documentation Group IS_LINK(3)
Related Man Pages |
---|
filemtime(3) - php |
is_link(3) - php |
file_exists(3) - php |
lstat(3) - php |
fileowner(3) - php |
Similar Topics in the Unix Linux Community |
---|
How do I delete a symbolic link? |
Why? |
invalid link |
How to list all symbolic link? |
Moving the target of a symbolic link |