Page 2 / 3 (22 Posts)

Why I consider (MVC) Smarty templating inefficient

Most PHP developers (and other web developpers too) seem to evolve on a similar path which goes like this: Step 1: take HTML pages an add PHP tags into them. Step 2: Realize that on a large scale this is getting very hard to maintain. Step 3: Learn…...

September 27, 2005 · 8 min · François Planque

PHP Variable names, Member names, Class names

I have just extended my PHP coding standard guidelines with these rules about variable naming: Remember this is PHP, not Microsoft Visual C++. There is actually little value in naming variables something like strFullTitle . Something like full_title is…...

April 27, 2005 · 1 min · François Planque

Another lousy PHP/MySQL /charset issue...

We had this quite interesting situation at work today: I export an UTF-8 MySQL database into an UTF_8 SQL file. I *binary* FTP the file over to him. He plays the SQL in PHPmyAdmin all configured for UTF-8. He then checks the data in PHPmyAdmin: special…...

December 3, 2004 · 2 min · François Planque

Using PHP 4.3.8 with MySQL 4.1

Running an app under PHP 4.3.8 and trying to connect to a MySQL 4.1 database can be pretty frustrating. By default it gives you a message like this: "Client does not support authentication protocol requested by server; consider upgrading MySQL client".…...

October 6, 2004 · 1 min · François Planque

PHP Output buffering and ob_handlers

PHP has some nice features to do output buffering. You just call . This is supposed to let you do "kewl" post-processing operations like: gzip compression, adding an ETag, adding content-length of your whole output. Crap! There are only two situations…...

April 20, 2004 · 1 min · François Planque

Eclipse for PHP, eclipse for everyone!

I really like Eclipse as a Java IDE, I do! :D However I'm getting really tired of having a different IDE for each language I am working with, no matter how cool those IDEs might be. Different display conventions, different keyboard shortcuts, different…...

November 16, 2003 · 3 min · François Planque

Internationalizing web applications using gettext in PHP

As I have said before, gettext is a very interesting framework for i18n and i10n. Now the question is, how do I apply this to web applications? Actually, I'm going to restrict my discussion here to PHP since this is what I'm working with right now...…...

August 20, 2003 · 5 min · François Planque

MagpieRSS

MagpieRSS provides an XML-based (expat) RSS parser in PHP. MagpieRSS is compatible with RSS .9 through RSS 1.0, and supports the RSS 1.0's modules (with a few exceptions).

August 14, 2003 · 1 min · François Planque

Advanced PHP book?

So I've been developing on b2evolution for a couple of months now and people seem to be quite happy with it ;) (read the testimonials! ;) ) Nevertheless I still feel like I'd really need to learn PHP for real someday! :. I mean, it's easy to learn the…...

July 23, 2003 · 1 min · François Planque

Web application caching

Blogs, as most current web applications, need to address the server-side caching issue in order to reduce webserver load. It looks like most people are quite happy with caching static versions of their pages for some defined amount of time. This method…...

June 28, 2003 · 2 min · François Planque