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 unlink
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
  • umask
  • Inotify

unlink

(PHP 4, PHP 5)

unlink — Apaga um arquivo

Descrição

int unlink ( string $filename [, resource $context ] )

Deleta filename. Similar a função do C no Unix unlink().

Parâmetros

filename

Caminho para o arquivo.

context

Note: O suporte ao contexto foi adicionado no PHP 5.0.0. Para uma descrição de contextos, veja Streams.

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em caso de falha.

Changelog

Versão Descrição
5.0.0 No PHP 5.0.0 unlink() pode também ser usada com alguns URL wrappers. Consulte Protocolos e wrappers suportados para uma listagem de wrappers que são suportados na unlink().

Veja Também

  • rmdir() - Remove um diretório for removing directories

© Copyright © 2001-2015 The PHP Group.

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