RE: variable placeholders in a text file

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

 



On 2012-12-31, at 4:58 PM, tamouse mailing lists <tamouse.lists@xxxxxxxxx> 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 function does less the actual printout, but
> using php variables instead of a str_replace. Also, this way the
> templates can be stored elsewhere, outside the actual code base if
> need be.

This sounds like it might be what I'm looking for. If I'm understanding
correctly, you are saying to use the include function to "read" in my
greeting file. I think I've got the basic gist of the concept, and will see
what I can hobble together real quick. This thought had not occurred
to me.

Thanks!
 		 	   		  
-- 
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