Re: include file to global scope
| From: | cc | Date: | Wed, 12 Oct 2005 15:15:04 +0000 |
| Subject: | Re: include file to global scope | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223991@lists.php.net to get a copy of this message | ||
yes, its possible, consider this:
/**
* @param $file_to_include path to php file you want to get its content
* @return included contents
*/
function get_output($file_to_include){
ob_start();
include $file_to_include;
return ob_get_clean();
}
of course, you may extend this function to better fit into your situation.
Good luck.
On 10/12/05, Claudio <karfunckel-php@yahoo.de> wrote:
> Is it possible to process the file in second php instance?
> An only get its output?
>
> Claudio
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>