PHP Manual

  • English French German Portuguese Spanish
Manual do PHP Referência das Funções Extensões Relacionadas a Sistema de Arquivo Filesystem Funções para Sistema de arquivo is_link
Funções para Sistema de arquivo basename chgrp chmod chown clearstatcache copy delete dirname disk_free_space disk_total_space diskfreespace fclose feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents file fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype flock fnmatch fopen fpassthru fputcsv fputs fread fscanf fseek fstat ftell ftruncate fwrite glob is_dir is_executable is_file is_link is_readable is_uploaded_file is_writable is_writeable lchgrp lchown link linkinfo lstat mkdir move_uploaded_file parse_ini_file parse_ini_string pathinfo pclose popen readfile readlink realpath_cache_get realpath_cache_size realpath rename rewind rmdir set_file_buffer stat symlink tempnam tmpfile touch umask unlink
  • is_file
  • is_readable

is_link

(PHP 4, PHP 5)

is_link — Diz se o arquivo é um link simbólico (symbolic link)

Descrição

bool is_link ( string $arquivo )

Informa se um dado arquivo é um link simbólico (symbolic link).

Parâmetros

filename

O caminho para o arquivo.

Valor Retornado

Retorna TRUE se o nome do arquivo existe e se é um link simbólico, FALSE caso contrário.

Notas

Note: Os resultados desta função são cacheados. Veja clearstatcache() para mais detalhes.

Tip

A partir do PHP 5.0.0, esta função também pode ser utilizada com alguns wrappers URL. Veja Protocolos e wrappers suportados para uma lista de quais wrappers são suportados pela família de funções stat().

Veja Também

  • is_dir() - Diz se o caminho é um diretório
  • is_file() - Informa se o arquivo é um arquivo comum (não é diretório)
  • readlink() - Retornar o alvo de um link simbólico

© Copyright © 2001-2015 The PHP Group.

© Copyright 2014. Diseñado por PHP Manual usando jfCMS.