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
  • Parse a configuration file parse_ini_file

    parse_ini_file

    Parseaconfigurationf
  • Match file names with pattern fnmatch

    fnmatch

    Matchfilenameswithpa
  • Create a hard connection link

    link

    Createahardconnectio
  • Read characters from file pointer fgetc

    fgetc

    Readcharactersfromfi
  • Format input from a file fscanf

    fscanf

    Formatinputfromafile
  • Positioning in file pointer fseek

    fseek

    Positioninginfilepoi
  • Write to files (safely used in binary files) fwrite

    fwrite

    Writetofiles(safelyu
  • Modify all groups of symbolic links lchgrp

    lchgrp

    Modifyallgroupsofsym