On Sat, 5 Jan 2013 04:20:09 -0600, Kevin Kinsey wrote:
> Nelson (et al),
>
> I've enjoyed reading this thread and apologize for dredging it up.
> It's interesting to see your progression of thought and the templating
> discussion is indeed a worthy one.
>
> However, I wanted to answer this object
On Mon, Dec 31, 2012 at 02:29:38PM -0600, Nelson Green wrote:
>
> On Mon, 31 Dec 2012 19:59:02, Ashley Sheridan wrote:
> ___
> >
> > On Mon, 2012-12-31 at 13:39 -0600, Nelson Green wrote:
>
Nelson (et al),
I've enjoyed reading this thread and apologize for dredg
> While using the *_once works in many cases, if you're doing a mass
> mailing kind of thing, you want to use the standard include/require so
> you can re-include it as your variables change:
>
> foreach ($customers as $customer) {
> $fullname = $customer['fullname'];
> $address = $customer['addre
On Mon, Dec 31, 2012 at 5:47 PM, Stephen wrote:
> The common stuff for every page is defined in the file "include.php". I
> define the variable $markup in that file.
>
> Here is the definition for $markup
>
> $markup=<< HEREDOC;
>
> By using require_once instead of fopen and fread, I have simpler
On 12-12-31 03:37 PM, Nelson Green wrote:
On Mon, 31 Dec 2012 14:47:20 Stephen D wrote:
Yes!
Easy standard stuff.
$title = 'Mr.";
$user_name = 'John Doe';
$message = "Hello $title $user_name "
Just define the value for the variables before defining the value for
the message.
Note that $
On 2012-12-31, at 4:58 PM, tamouse mailing lists
wrote:
> I use the include("template") method for this alla time, it works
> great. Most especially for HTML emails coming from a web site to a
> group of users, just slick as anything. include does basically just
> what your print_greeting functi
Bastien Koert
On 2012-12-31, at 4:58 PM, tamouse mailing lists
wrote:
> On Mon, Dec 31, 2012 at 2:37 PM, Nelson Green
> wrote:
>>
>> On Mon, 31 Dec 2012 14:47:20 Stephen D wrote:
>>>
>>> Yes!
>>>
>>> Easy standard stuff.
>>>
>>> $title = 'Mr.";
>>> $user_name = 'John Doe';
>>>
>>> $mes
On Mon, Dec 31, 2012 at 2:37 PM, Nelson Green wrote:
>
> On Mon, 31 Dec 2012 14:47:20 Stephen D wrote:
>>
>> Yes!
>>
>> Easy standard stuff.
>>
>> $title = 'Mr.";
>> $user_name = 'John Doe';
>>
>> $message = "Hello $title $user_name "
>>
>> Just define the value for the variables before defini
On Mon, 31 Dec 2012 14:47:20 Stephen D wrote:
>
> Yes!
>
> Easy standard stuff.
>
> $title = 'Mr.";
> $user_name = 'John Doe';
>
> $message = "Hello $title $user_name "
>
> Just define the value for the variables before defining the value for
> the message.
>
> Note that $message has to use do
On Mon, 31 Dec 2012 19:59:02, Ashley Sheridan wrote:
___
>
> On Mon, 2012-12-31 at 13:39 -0600, Nelson Green wrote:
> My question is, is there another way to do something similar, such as
> embedding a variable name directly into the text file? In other words,
>
Please excuse the top post, but this may be helpful:
http://stut.net/2008/10/28/snippet-simple-templates-with-php/
-Stuart
--
Sent from my leaf blower
On 31 Dec 2012, at 19:59, Ashley Sheridan wrote:
> On Mon, 2012-12-31 at 13:39 -0600, Nelson Green wrote:
>
>> Hello,
>>
>> I have created
On Mon, 2012-12-31 at 13:39 -0600, Nelson Green wrote:
> Hello,
>
> I have created a simple function that prints a personalized greeting by
> reading
> the greeting contents from a file. I pass the user's name to the function,
> and the function reads the file contents into a string variable. I
Yes!
Easy standard stuff.
$title = 'Mr.";
$user_name = 'John Doe';
$message = "Hello $title $user_name "
Just define the value for the variables before defining the value for
the message.
Note that $message has to use double quotes for the expansion. Also
consider using HEREDOC instead
13 matches
Mail list logo