Introduction
I’m currenlty working on a site where I want to improve performance of dynamic pages. One of the greatest techniques to do is to cache dynamic content and serve the generated output (HTML).
It’s not as easy as we all want it to be when you have all sorts of weird blocks on the page: User login area, random content, ..etc
As I had a very pleasent experience with eZ components last week, I decided to take a look at the components, but then i remembered it works on PHP5. This project is on PHP4, I had to look for an alternative and decided to use PEAR::Cache_Lite.
Read the rest of this entry »
Posted on Monday, August 21st, 2006
Under: Code, HowTo, PEAR, PHP | 3 Comments »
A few days ago I was asked to develop a simple script for a solidarity campaign. The idea is that people send their photos as attachements to some email. The script would download all images attached and insert a record for that in the database.
I got introduced to eZ components during my last visit to Norway to attend the eZ systems conference. I decided to give it a shot, and oh boy it’s just amazing, probably the cleanest and simplest API ever.
I managed to find the package “Mail”:
The components allows you construct Mail messages conforming to the RFCs. It has support for attachments, multipart messages and HTML mail. It also interfaces with SMTP to send the e-mail. Reading and parsing mail messages comes in version 1.1.
The package is well documented and includes many examples. Here’s the script I ended up writing (edited version):
Read the rest of this entry »
Posted on Monday, August 14th, 2006
Under: Code, Frameworks, PHP | 4 Comments »