Re: [PHP] string as file

2007-08-10 Thread Jim Lucas
Rick Pasotto wrote: On Thu, Aug 09, 2007 at 02:39:51PM -0700, Jim Lucas wrote: Rick Pasotto wrote: Does php have a facility similar to python's stringIO? What I'm wanting to do is similar to a mail merge. IOW, I know I can create an include file like: $out = << template.php This is two diffe

Re: [PHP] string as file

2007-08-10 Thread Stut
Robert Cummings wrote: On Fri, 2007-08-10 at 16:28 +0100, Stut wrote: Rick Pasotto wrote: On Fri, Aug 10, 2007 at 02:19:29PM +0100, Stut wrote: Rick Pasotto wrote: On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: On 8/9/07, Rick Pasotto <[EMAIL PROTECTED]> wrote: Does php have a

Re: [PHP] string as file

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 16:28 +0100, Stut wrote: > Rick Pasotto wrote: > > On Fri, Aug 10, 2007 at 02:19:29PM +0100, Stut wrote: > >> Rick Pasotto wrote: > >>> On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: > On 8/9/07, Rick Pasotto <[EMAIL PROTECTED]> wrote: > > Does php have

Re: [PHP] string as file

2007-08-10 Thread Stut
Rick Pasotto wrote: On Fri, Aug 10, 2007 at 02:19:29PM +0100, Stut wrote: Rick Pasotto wrote: On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: On 8/9/07, Rick Pasotto <[EMAIL PROTECTED]> wrote: Does php have a facility similar to python's stringIO? What I'm wanting to do is simil

Re: [PHP] string as file

2007-08-10 Thread Rick Pasotto
On Fri, Aug 10, 2007 at 02:19:29PM +0100, Stut wrote: > Rick Pasotto wrote: >> On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: >>> On 8/9/07, Rick Pasotto <[EMAIL PROTECTED]> wrote: Does php have a facility similar to python's stringIO? What I'm wanting to do is similar

Re: [PHP] string as file

2007-08-10 Thread Stut
Rick Pasotto wrote: On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: On 8/9/07, Rick Pasotto <[EMAIL PROTECTED]> wrote: Does php have a facility similar to python's stringIO? What I'm wanting to do is similar to a mail merge. IOW, I know I can create an include file like: $out = <

Re: [PHP] string as file

2007-08-10 Thread Rick Pasotto
On Thu, Aug 09, 2007 at 02:39:51PM -0700, Jim Lucas wrote: > Rick Pasotto wrote: >> Does php have a facility similar to python's stringIO? >> What I'm wanting to do is similar to a mail merge. IOW, I know I can >> create an include file like: >> $out = <<> This is an example of $var1 and $var2. >>

Re: [PHP] string as file

2007-08-10 Thread Rick Pasotto
On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: > On 8/9/07, Rick Pasotto <[EMAIL PROTECTED]> wrote: > > Does php have a facility similar to python's stringIO? > > > > What I'm wanting to do is similar to a mail merge. IOW, I know I can > > create an include file like: > > > > $out = <

Re: [PHP] string as file

2007-08-09 Thread Jim Lucas
Rick Pasotto wrote: Does php have a facility similar to python's stringIO? What I'm wanting to do is similar to a mail merge. IOW, I know I can create an include file like: $out = << template.php This is two different ways you can do it, bases on your input data array structure test.php '

Re: [PHP] string as file

2007-08-09 Thread Greg Donald
On 8/9/07, Rick Pasotto <[EMAIL PROTECTED]> wrote: > Does php have a facility similar to python's stringIO? > > What I'm wanting to do is similar to a mail merge. IOW, I know I can > create an include file like: > > $out = << This is an example of $var1 and $var2. > EOT; > > and then after assignin