Review the file functions and you will find what you need:

http://www.php.net/manual/en/ref.filesystem.php

Like the functions: 1) file_get_contents() and 2) file()

--
Ray

On Wed, 2003-03-05 at 07:40, Mattia wrote:
> i need to put in a var all the processed contents of a .php file in my
> directory. The filemust be processed, and its output put in a variable,
> instead of output to the browser. The simple solution would be to use
> 
> ob_start()
> ..
> ..
> $var = ob_get_contents()
> 
> or something like that with ob_ functions, the problem is that i'm already
> using ob_ function, in particular i put in the beginning of my code a
> ob_start("ob_gzhandler") , to compress the output. So if I use those funcs
> twice i'll use the same buffer! Does anyone have solutions??
> 
> thanks
> Mattia
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to