RE: [PHP] variable placeholders in a text file

From: Date: Mon, 31 Dec 2012 23:02:51 +0000
Subject: RE: [PHP] variable placeholders in a text file
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-319985@lists.php.net to get a copy of this message
On 2012-12-31, at 4:58 PM, tamouse mailing lists <tamouse.lists@gmail.com> 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!

« previous php.general (#319985) next »