PHP Manual

  • English French German Portuguese Spanish
Manual do PHP Referência das Funções Outras Extensões Básicas Streams streamWrapper streamWrapper::unlink
streamWrapper streamWrapper::__construct streamWrapper::__destruct streamWrapper::dir_closedir streamWrapper::dir_opendir streamWrapper::dir_readdir streamWrapper::dir_rewinddir streamWrapper::mkdir streamWrapper::rename streamWrapper::rmdir streamWrapper::stream_cast streamWrapper::stream_close streamWrapper::stream_eof streamWrapper::stream_flush streamWrapper::stream_lock streamWrapper::stream_metadata streamWrapper::stream_open streamWrapper::stream_read streamWrapper::stream_seek streamWrapper::stream_set_option streamWrapper::stream_stat streamWrapper::stream_tell streamWrapper::stream_truncate streamWrapper::stream_write streamWrapper::unlink streamWrapper::url_stat
  • streamWrapper::stream_write
  • streamWrapper::url_stat

streamWrapper::unlink

(PHP 5)

streamWrapper::unlink — Delete a file

Descrição

public bool streamWrapper::unlink ( string $path )

This method is called in response to unlink().

Note:

In order for the appropriate error message to be returned this method should not be defined if the wrapper does not support removing files.

Parâmetros

path

The file URL which should be deleted.

Valor Retornado

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

Erros

Emits E_WARNING if call to this method fails (i.e. not implemented).

Notas

Note:

The streamWrapper::$context property is updated if a valid context is passed to the caller function.

Veja Também

  • unlink() - Apaga um arquivo
  • streamWrapper::rmdir() - Removes a directory

© Copyright © 2001-2015 The PHP Group.

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