RE: [PHP] Getting an include file into a string after PHP evaluates the vars?

2002-01-30 Thread Kevin Stone
Actualy I found it's even easier Jim.. ob_start(); include(templates/$card[template].html); $output = ob_get_contents(); ob_end_clean(); The include() between the start and clean ob_*() functions won't print to the client browser yet still evaluates the ?php?

Re: [PHP] Getting an include file into a string after PHP evaluates the vars?

2002-01-30 Thread Jim Lucas [php]
how you suggest the solution is what I use all the time. But I thought you wanted to work with is as a string. sorry for the confusion. Jim Lucas - Original Message - From: Kevin Stone [EMAIL PROTECTED] To: 'Jim Lucas [php]' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January

Re: [PHP] Getting an include file into a string after PHP evaluates the vars?

2002-01-29 Thread Jim Lucas [php]
yes, there is a way out, you can use readfile(). capture the output using ob_*() functions and then parse/eval that string listed here are the functions you'll need. http://www.php.net/manual/en/function.readfile.php http://www.php.net/manual/en/function.ob-start.php