stream_open ( $path, $mode, $options, $opened_path )

Opens file or URL. This method is called immediately after the wrapper is initialized (e.g., by fopen() and file_get_contents()).

Access

public

Parameters

Parameter

Type

Required

Description

$path

string

Required

Specifies the URL that was passed to the original function.

$mode

string

Required

Ignored.

$options

integer

Required

Ignored.

$opened_path

Required

Returns

Type

Description

boolean

Returns true on success or false on failure.

Source

Method defined in extensions/s3streamwrapper.class.php | Toggle source view (10 lines) | View on GitHub

public function stream_open($path, $mode, $options, &$opened_path)
{
    $opened_path = $path;
    $this->open_file = $path;
    $this->path = $path;
    $this->seek_position = 0;
    $this->object_size = 0;

    return true;
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback