Thanks Richard,
I don't think the output buffering does what I want. I want to be able to do
something like this:
if( $preview_mode )
$output = fopen("php://stdout", "w");
else
$output = fopen("/some/file/path/soemwhere.html", "w");
As far as I'm aware PHP does output to stdout. Whether or not we can
actually access that stream is another question, and one I don't know the
answer to.
However, I do have a suggestion... Have you looked at the output buffering
functions? They seem to implement what you're trying to do...
h
2 matches
Mail list logo