EndStream
Prev | PHPlot Function Reference | Next

## EndStream

EndStream — End a Motion-JPEG (or other type) plot stream

## Synopsis

    $plot->EndStream()

## Description

`EndStream` is used to end a plot stream, started with StartStream and containing frames produced by PrintImageFrame. This function simply outputs the ending MIME boundary for the stream.

## Parameters

None

## Notes

The three functions StartStream, PrintImageFrame, and `EndStream` are used together to produce streaming plots. Scripts producing streaming plots must use a web server. The PHP CLI will not work, because streaming plots require HTTP headers.

For more on streaming plots, see Section 4.9, “Streaming Plots”.

## Example

See PrintImageFrame for a partial example, and Section 4.9.3, “Streaming Plots - Example” for the complete example.

## History

This function was added in PHPlot-5.8.0. Prior releases are not able to produce streaming plots.

Prev | Up | Next
EncodeImage | Home | GetCallback