Reputation: 21
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
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