Re: [PHP] insert html into php variable

2007-02-12 Thread Sancar Saran
Hi, If I understood your questions here my solution. Tip: Do not use " in html files... externalFile.php ".$arrData[$i]['foo']." ".$arrData[$i]['bar']." ".$arrData[$i] ['baz']."\n"; } ?> mailFile.php Some Header\n"; $strSubject = "This Is subject"; $strBody = " ".$strFirsRow." ".$strExterna

Re: [PHP] insert html into php variable

2007-02-12 Thread Robert Cummings
On Mon, 2007-02-12 at 15:20 +0200, clive wrote: > Robert Cummings wrote: > > On Mon, 2007-02-12 at 14:52 +0200, clive wrote: > >>> >>> > >>> ob_start(); > >>> include( 'someFile.php' ); > >>> $content = ob_get_contents(); > >>> ob_end_clean(); > >>> > >>> ?> > >> no I think he need

RE: [PHP] insert html into php variable

2007-02-12 Thread Robert Cummings
On Mon, 2007-02-12 at 13:20 +, Edward Kay wrote: > > > > I am using phpmailer for a rich html mailer and I have been using > > > > lines like > > > > this to build up the mailbody > > > > > > > > $mail_body .= " > > > src=\"http://www.myurl.org/mylogo.gif\";; > > > > > > > > Is there a build i

Re: [PHP] insert html into php variable

2007-02-12 Thread clive
Robert Cummings wrote: On Mon, 2007-02-12 at 14:52 +0200, clive wrote: no I think he needs file_get_contents(); While that will certainly read PHP into a variable, it won't evaluate the contents. Then you're stuck with eval. This has the undesirable effect of not being able to take advantage

RE: [PHP] insert html into php variable

2007-02-12 Thread Edward Kay
> > > I am using phpmailer for a rich html mailer and I have been using > > > lines like > > > this to build up the mailbody > > > > > > $mail_body .= " > > src=\"http://www.myurl.org/mylogo.gif\";; > > > > > > Is there a build in function to assign html code to a php > > > variable and then > > >

Re: [PHP] insert html into php variable

2007-02-12 Thread Robert Cummings
On Mon, 2007-02-12 at 14:52 +0200, clive wrote: > > > > > ob_start(); > > include( 'someFile.php' ); > > $content = ob_get_contents(); > > ob_end_clean(); > > > > ?> > > no I think he needs file_get_contents(); While that will certainly read PHP into a variable, it won't evalua

Re: [PHP] insert html into php variable

2007-02-12 Thread clive
no I think he needs file_get_contents(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] insert html into php variable

2007-02-12 Thread Robert Cummings
On Mon, 2007-02-12 at 12:27 +, Edward Kay wrote: > > I am using phpmailer for a rich html mailer and I have been using > > lines like > > this to build up the mailbody > > > > $mail_body .= " > src=\"http://www.myurl.org/mylogo.gif\";; > > > > Is there a build in function to assign html code t

RE: [PHP] insert html into php variable

2007-02-12 Thread Edward Kay
> I am using phpmailer for a rich html mailer and I have been using > lines like > this to build up the mailbody > > $mail_body .= " src=\"http://www.myurl.org/mylogo.gif\";; > > Is there a build in function to assign html code to a php > variable and then > output them? Or can I read an external