streamWrapper::url_stat

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Retrieve information about a file public array streamWrapper::url_stat ( string $path, int $flags ) This method is called in response to all stat() related functions, such as: chmod() (only when safe_mode is enabled) copy() fileperms() fileinode() filesize() fileowner() filegroup() fileatime() filemtime() filectime() filetype() is_writable() is_readable() is_executable() is_file() is_dir()

streamWrapper::unlink

(PHP 5, PHP 7) Delete a file 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. Returns: Return

streamWrapper::stream_write

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Write to stream public int streamWrapper::stream_write ( string $data ) This method is called in response to fwrite(). Note: Remember to update the current position of the stream by number of bytes that were successfully written. Parameters: data Should be stored into the underlying stream. Note: If there is not enough room in th

streamWrapper::stream_truncate

(PHP 5 >= 5.4.0, PHP 7) Truncate stream public bool streamWrapper::stream_truncate ( int $new_size ) Will respond to truncation, e.g., through ftruncate(). Parameters: new_size The new size. Returns: Returns TRUE on success or FALSE on failure. See also: ftr

streamWrapper::stream_tell

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Retrieve the current position of a stream public int streamWrapper::stream_tell ( void ) This method is called in response to fseek() to determine the current position. Returns: Should return the current position of the stream.

streamWrapper::stream_stat

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Retrieve information about a file resource public array streamWrapper::stream_stat ( void ) This method is called in response to fstat(). Returns: See stat(). Exception: Emits E_WARNING if call to this method fails (i.e. not implemented). See also: stat() -

streamWrapper::stream_set_option

(PHP 5 >= 5.3.0, PHP 7) Change stream options public bool streamWrapper::stream_set_option ( int $option, int $arg1, int $arg2 ) This method is called to set options on the stream. Parameters: option One of: STREAM_OPTION_BLOCKING (The method was called in response to stream_set_blocking()) STREAM_OPTION_READ_TIMEOUT (The method was called in response to stream_set_

streamWrapper::stream_seek

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Seeks to specific location in a stream public bool streamWrapper::stream_seek ( int $offset, int $whence = SEEK_SET ) This method is called in response to fseek(). The read/write position of the stream should be updated according to the offset and whence. Parameters: offset The stream offset to seek to. whence

streamWrapper::stream_read

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Read from stream public string streamWrapper::stream_read ( int $count ) This method is called in response to fread() and fgets(). Note: Remember to update the read/write position of the stream (by the number of bytes that were successfully read). Parameters: count How many bytes of data from the current position should be returned.

streamWrapper::stream_open

(PHP 4 >= 4.3.2, PHP 5, PHP 7) Opens file or URL public bool streamWrapper::stream_open ( string $path, string $mode, int $options, string &$opened_path ) This method is called immediately after the wrapper is initialized (f.e. by fopen() and file_get_contents()). Parameters: path Specifies the URL that was passed to the original function. Note: The URL can be