Re: [PHP] Standard output (printf) question...

2001-12-21 Thread Paul H. Breslin
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");

RE: [PHP] Standard output (printf) question...

2001-12-21 Thread Richard Black
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