SproutCMS

This is the code documentation for the SproutCMS project

function putStream()

Saves file content from a stream. Basically just fopen/stream_copy_to_stream/fclose

Usage

bool File::putStream ( string $filename , resource $stream );

Arguments

  1. string $filename
    The name of the file in the repository
  2. resource $stream
    The stream to copy content from

Return value

  • bool
    True on success, false on failure