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?
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
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
3 matches
Mail list logo