» Techniques
-
Singleton and Registry patterns in PHP for Globals
By vinu on June 28th, 2006 | No Comments
Over at PHPIt, Dennis explains how to go around the globals problem in PHP by using Singleton and Registry patterns. In this article you will be shown how to properly use globals in PHP. We will take a look at the global... -
Damien Katz: Error codes or Exceptions? Why is Reliab...
By vinu on June 15th, 2006 | No Comments
Here’s an interesting read on error handling. “Very little software really gets error handling right. Even many critical, backend server systems tend to break under heavy loads. And the vast majority of end-u... -
Force a download on the browser
By vinu on June 9th, 2006 | 2 Comments
Here’s a piece of code which will force download a pdf instead of showing it inline in the browser. < ?php header('Pragma: public'); header('Last-Modified: '.gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Contro... -
PHPit - Totally PHP » Create your own HTML widgets w...
By vinu on May 29th, 2006 | No Comments
Did you ever want to create your own HTML tags and have them displayed in a certain way, or make that tag perform some action? Here’s a tutorial which shows you how to do that by creating HTML widgets in PHP. In th... -
[Pragmatic Programming] A New Look at Test-Driven Dev...
By vinu on May 19th, 2006 | No Comments
Here’s an article that’s about a year old but getting some attention on reddit: Dave Astels’ blog entry titled A New Look at Test-Driven Development. He argues that the way most people view unit testing...





