June 28th, 2006

Send emails from a template with PHP

When you're designing your web application, you'll find that various actions require that an email be sent off. It's easy to hard-code the email into the script. For example, in a tech support web application, you may want to send an email when a user submits a ticket, and another email alerting them of any replies.

But what happens when you have many different emails to send, and they deliver a lot of different, complex information. Then it gets too difficult to maintain many different lines of code for different emails. It's easier to create a generic email template class, and then as many templates as you want. Here's how! (more…)

June 27th, 2006

PHP: Trim a String Without Cutting Any Words

I previously posted a function that allows you to trim a string in ASP without chopping any words in half. It works by trimming to the space nearest the desired string length. Here's the duplicate function in PHP. (more…)

June 26th, 2006

Rotate Images Near Adsense Ads with PHP

It is against the Adsense TOS to draw attention to the ads in any inappropriate way. However, many people have found that placing images in the near vicinity can increase CTR. However, how do you keep those images fresh?

This code will create image rotation which you can use to rotate images beside adsense ads. That way they never get stale. You could also use it for some ads rotation if you're not using adense or otherwise. (more…)

June 22nd, 2006

New Email Marketing Forum

Web

Just wanted to share a link to a new Email marketing Forum. I'll be posting and answering questions regularly, so join now!

June 21st, 2006

A Simple Login System with PHP & MySQL

Essential to any membership-based site is a long system. This code will provide you with the basis from which to start. (more…)

Next Page »