Re: Re: string as file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reading that, I think it's similar to this:
http://php.net/stream

I'm really not sure what the OP wants, though...



On Thu, August 9, 2007 6:32 pm, Dan wrote:
> Well, I have no idea what the Phython StringIO method does.  Could
> someone
> explain in PHP terms maybe?  Google gave me this explaining stringIO
> http://docs.python.org/lib/module-StringIO.html .  It didnt' make much
> sense
> still after reading it though.
>
> - Dan
>
> "Rick Pasotto" <rick@xxxxxxxx> wrote in message
> news:20070809202208.GU31411@xxxxxxxxxxx
>> 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 = <<<EOT
>> This is an example of $var1 and $var2.
>> EOT;
>>
>> and then after assigning values to $var1 and $var2 include that
>> file. I
>> can later use different values for $var1 and $var2 and get a
>> different
>> $out with a second include.
>>
>> Can I someout "include" a string instead of a file? Or maybe there
>> is
>> some completely different way to do what I want.
>>
>> --
>> "I have always in my own thought summed up individual liberty, and
>> business liberty, and every other kind of liberty, in the phrase
>> that is common in the sporting world, "A free field and no favor."
>> -- Woodrow Wilson, U.S. President, 1915
>>    Rick Pasotto    rick@xxxxxxxx    http://www.niof.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux