streamWrapper::stream_metadata

(PHP 5 >= 5.4.0, PHP 7) Change stream options public bool streamWrapper::stream_metadata ( string $path, int $option, mixed $value ) This method is called to set metadata on the stream. It is called when one of the following functions is called on a stream URL: touch() chmod() chown() chgrp() Note: The function is available since PHP 5.4.0. Parameters: path The file

streamWrapper::stream_lock

(PHP 5, PHP 7) Advisory file locking public bool streamWrapper::stream_lock ( int $operation ) This method is called in response to flock(), when file_put_contents() (when flags contains LOCK_EX), stream_set_blocking() and when closing the stream (LOCK_UN). Parameters: operation operation is one of the following: LOCK_SH to acquire a shared lock (reader). LOCK_EX t

streamWrapper::stream_flush

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Flushes the output public bool streamWrapper::stream_flush ( void ) This method is called in response to fflush() and when the stream is being closed while any unflushed data has been written to it before. If you have cached data in your stream but not yet stored it into the underlying storage, you should do so now. Returns: Should return TRUE if the cached data

streamWrapper::stream_eof

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Tests for end-of-file on a file pointer public bool streamWrapper::stream_eof ( void ) This method is called in response to feof(). Returns: Should return TRUE if the read/write position is at the end of the stream and if no more data is available to be read, or FALSE otherwise. See also:

streamWrapper::stream_close

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Close a resource public void streamWrapper::stream_close ( void ) This method is called in response to fclose(). All resources that were locked, or allocated, by the wrapper should be released. Returns: No value is returned. See also: fclose() - str

streamWrapper::stream_cast

(PHP 5 >= 5.3.0, PHP 7) Retrieve the underlaying resource public resource streamWrapper::stream_cast ( int $cast_as ) This method is called in response to stream_select(). Parameters: cast_as Can be STREAM_CAST_FOR_SELECT when stream_select() is calling stream_cast() or STREAM_CAST_AS_STREAM when stream_cast() is called for other uses. Returns:

streamWrapper::rmdir

(PHP 5, PHP 7) Removes a directory public bool streamWrapper::rmdir ( string $path, int $options ) This method is called in response to rmdir(). Note: In order for the appropriate error message to be returned this method should not be defined if the wrapper does not support removing directories. Parameters: path The directory URL which should be removed.

streamWrapper::rename

(PHP 5, PHP 7) Renames a file or directory public bool streamWrapper::rename ( string $path_from, string $path_to ) This method is called in response to rename(). Should attempt to rename path_from to path_to Note: In order for the appropriate error message to be returned this method should not be defined if the wrapper does not support renaming files. Parameters: path_from

streamWrapper::mkdir

(PHP 5, PHP 7) Create a directory public bool streamWrapper::mkdir ( string $path, int $mode, int $options ) This method is called in response to mkdir(). Note: In order for the appropriate error message to be returned this method should not be defined if the wrapper does not support creating directories. Parameters: path Directory which should be created.

streamWrapper::dir_rewinddir

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Rewind directory handle public bool streamWrapper::dir_rewinddir ( void ) This method is called in response to rewinddir(). Should reset the output generated by streamWrapper::dir_readdir(). i.e.: The next call to streamWrapper::dir_readdir() should return the first entry in the location returned by streamWrapper::dir_opendir(). Returns: Returns TRUE on success