Browsing all articles from December, 2009

File Type Detection in PHP

I’m working on a project where the users can upload files, and I need to know the type of file they are uploading, a simple solution would be to check [...]

Format a Mysql DateTime Field with Zend_Date

Formatting Dates fetched from the db becomes a simple task with the help of Zend_Date, here I show you how I use a small function to handle date formatting in a simple way.

Mount a remote filesystem using sshfs

I often have to upload files to several servers, and some of them doesn’t have an rsync or ftp server, so if I’m going to make a deployment, I have [...]