DotGeek.org has two new pieces from John Coggeshall posted this morning - different, but both very informative. These two tutorials, Separating Content from Code and Sending File Attachments From PHP.
In Separating Content from Code the author explains to you a simple way to keep the HTML and comments separate from your PHP code using includes and simple templating functions. There are several other ways to accomplish the same objective, but this article is a good start.
The second article, Sending File Attachments From PHP explains one of the projects that seems to baffle quite a few PHP programmers - sending an attachment via a MIME email with the binary data intact. Starting off with a simple MIME-formatted email, he continues with a straight-forward approach to grabbing any file you might need and attaching it to an email. It turns out to be quite simple in the long run, but this is just a base to build onto for future scripts...




