Re: Feature: include to a file?

From: Date: Fri, 30 Jun 2000 22:37:47 +0000
Subject: Re: Feature: include to a file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4193@lists.php.net to get a copy of this message
> 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

« previous php.general (#4193) next »