简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM