stream_open() 공개 메소드

Function to open file or url
또한 보기: streamWrapper::stream_open
public stream_open ( string $path, string $mode, integer $options, &$opened_path ) : boolean
$path string The URL that was passed
$mode string Mode used to open the file @see fopen
$options integer Flags used by the API, may be STREAM_USE_PATH and STREAM_REPORT_ERRORS
리턴 boolean
예제 #1
0
파일: BufferTest.php 프로젝트: Joal01/fof
 /**
  * @return Buffer
  */
 protected function buildBuffer()
 {
     $buffer = new Buffer();
     $dummy = null;
     $buffer->stream_open('buffer://path/to/some/file', 'w', null, $dummy);
     return $buffer;
 }