php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #87 Rerouting of standard output
Submitted: 1998-02-19 17:43 UTC Modified: 1999-06-12 16:30 UTC
From: john at jfisher dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0b4 OS: Linux
Private report: No CVE-ID: None
 [1998-02-19 17:43 UTC] john at jfisher dot com
Is there any way to re-route the standard output of a PHP script to a file, especially temporarly? I have a page that generates a custom report, and it would be extremely helpful to be able to call the page from inside an 'include' statement of another page, and reroute the generated report to disk, effectively saving a snapshot of the report.

I think what I'm asking for is the 'select' function in perl. Is this a feature that might be added, or am I missing
an existing feature?

Thanks,
John Fisher

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-12 16:30 UTC] jim at cvs dot php dot net
Added in PHP4.
 [1999-06-12 16:30 UTC] jim at cvs dot php dot net
Whoops, forgot to close.
 [2026-04-04 10:52 UTC] git@php.net
Automatic comment on behalf of rlerdorf
Revision: https://github.com/php/pecl-networking-ssh2/commit/1492ab654f5508f1c6792f1be63cfc29270eec11
Log: Fix #87 by adding homebrew path to search path
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu May 21 11:00:02 2026 UTC