Re: [PHP] eval and HEREDOC

2010-07-21 Thread Sorin Buturugeanu
>>>> >>>> I think there must be a solution, but I'm missing something here  .. >>> >>> >>> Check out the ob_* functions >>> >>> You could do this >>> >>> ob_start(); >>> >>> include &q

Re: [PHP] eval and HEREDOC

2010-07-20 Thread Peter Lind
t;> >> echo $output; >> >> Jim >> >>> >>> Thanks again! >>> >>> -- >>> Sorin Buturugeanu >>> http://www.soin.ro >>> >>> >>> On Wed, Jul 21, 2010 at 12:49 AM, Daevid Vincent >>> wro

Re: [PHP] eval and HEREDOC

2010-07-20 Thread Sorin Buturugeanu
utput = ob_get_clean(); > > echo $output; > > Jim > >> >> Thanks again! >> >> -- >> Sorin Buturugeanu >> http://www.soin.ro >> >> >> On Wed, Jul 21, 2010 at 12:49 AM, Daevid Vincent >> wrote: >>> >>>

Re: [PHP] eval and HEREDOC

2010-07-20 Thread lists
p://www.soin.ro > > > On Wed, Jul 21, 2010 at 12:49 AM, Daevid Vincent > wrote: >> >> > -Original Message- >> > From: Sorin Buturugeanu [mailto:m...@soin.ro] >> > Sent: Tuesday, July 20, 2010 2:11 PM >> > To: php-general@lists.php.net >> &g

Re: [PHP] eval and HEREDOC

2010-07-20 Thread Sorin Buturugeanu
Vincent wrote: > > > -Original Message- > > From: Sorin Buturugeanu [mailto:m...@soin.ro] > > Sent: Tuesday, July 20, 2010 2:11 PM > > To: php-general@lists.php.net > > Subject: [PHP] eval and HEREDOC > > > > Hello, > > > > I am having trouble w

RE: [PHP] eval and HEREDOC

2010-07-20 Thread Daevid Vincent
> -Original Message- > From: Sorin Buturugeanu [mailto:m...@soin.ro] > Sent: Tuesday, July 20, 2010 2:11 PM > To: php-general@lists.php.net > Subject: [PHP] eval and HEREDOC > > Hello, > > I am having trouble with a part of my templating script. I'll >

[PHP] eval and HEREDOC

2010-07-20 Thread Sorin Buturugeanu
Hello, I am having trouble with a part of my templating script. I'll try to explain: The template itself is HTML with PHP code inside it, like: And I have the following code as part of the templating engine: $template = file_get_contents($file); $template = "return << If in the HTML file (te