PHP Manual

  • English French German Portuguese Spanish
PHP Manual Function Reference Other Basic Extensions 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

Description

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.

Parameters

path

The file URL which should be deleted.

Return Values

Returns TRUE on success or FALSE on failure.

Errors/Exceptions

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

Notes

Note:

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

See Also

  • unlink() - Deletes a file
  • streamWrapper::rmdir() - Removes a directory

© Copyright © 2001-2015 The PHP Group.

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