Re: Feature: include to a file?

From: Date: Sat, 01 Jul 2000 11:07:55 +0000
Subject: Re: Feature: include to a file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4240@lists.php.net to get a copy of this message
On Fri, 30 Jun 2000, Chris Adams wrote: > > There are a couple of approaches to what I want to do. Basically, I > > want to call 'include' and have the output piped to a file, rather than > > to standard output. One way to accomplish this would be for PHP to > > allow me to change its stdout pointer to some other file that I specify. > > ob_start(); > include($File); > $output = fopen(...); > fwrite($output, ob_get_contents()); > fclose($output); > ob_end_clean(); // Don't send output to client > ob_end_flush(); // Do send output to client ob_start(); ob_get_contents(); ob_end_clean(); ob_end_flush(); These functions seem to be completely undocumented. They seem to be part of ZEND. I found a reference to them in the zend changelog but NOWHERE else. Are there any gotchas or issues with them? Any more info or other related functions? Are there other undocumented zend functions floating around? What will it take to get these functions added to the documentation. I have long wanted the functionality provided by these functions. So I am very interested in learning more about how to use them. Eric

« previous php.general (#4240) next »