Current Location: Home> Function Categories> is_link

is_link

Determine whether the given file name is a symbolic connection
Name:is_link
Category:File system
Programming Language:php
One-line Description:Determines whether the specified file is a connection.

Definition and usage

is_link() function determines whether the specified file name is a symbolic connection.

实例

<?php
$link = "images";
if(is_link($link))
  {
  echo ("$link is a link");
  }
else
  {
  echo ("$link is not a link");
  }
?>

输出:

images is not a link

grammar

 is_link ( file )
parameter describe
file Required. Specify documents to be inspected.

illustrate

Return true if the file exists and is a symbolic connection.

Similar Functions
  • Synchronize data (but not metadata) to a file fdatasync

    fdatasync

    Synchronizedata(butn
  • Change file owner chown

    chown

    Changefileowner
  • Obtain file permissions fileperms

    fileperms

    Obtainfilepermission
  • Synchronize changes to files (including metadata) fsync

    fsync

    Synchronizechangesto
  • Truncate the file to a given length ftruncate

    ftruncate

    Truncatethefiletoagi
  • Get file information through the opened file pointer fstat

    fstat

    Getfileinformationth
  • Group of files obtained filegroup

    filegroup

    Groupoffilesobtained
  • Determine whether the given file name is a normal file is_file

    is_file

    Determinewhethertheg
Popular Articles