HARISH DHULIPALLA
HARISH DHULIPALLA

Reputation: 21

How to read content from 'php://output' stream

According to the docs php://output is only a writable stream, is there any way to read whatever was streamed to it as a content(possibilly a string);

$content = fopen('php://output',r);

tried above code but no use.

Upvotes: 1

Views: 244

Answers (1)

Jay Blanchard
Jay Blanchard

Reputation: 34416

No, you cannot read from php://output From the docs

php://output is a write-only stream that allows you to write to the output buffer mechanism in the same way as print and echo.

Upvotes: 0

Related Questions