Category Archives: php

PHP Recursion – Cellphone Number Combination

Few days ago, a friend ask help for an obviously recursive problem. The problem was to give all letter combination for every given number in a typical cellphone number. Given a very limited time at work, I manage to solve … Continue reading

Posted in php, Recursion | Tagged , , , , | 2 Comments

Showing Date Span – PHP and JavaScript Version

It is common to see date/time span in feeds and on most social networking sites. If you don’t get it, it is the line that says “An hour ago”, or “Yesterday”, or “21 minutes ago” sort of for human friendly … Continue reading

Posted in JavaScript, php | Tagged , , , , , , | Leave a comment

Various URL Rewrites – PHP and Apache

URL rewriting is usually done to route request to a single application entry point such as index.php. Of course, it is also used to create human and bot friendly URLs. This type of URL rewriting comes in different flavor for … Continue reading

Posted in Apache, php | Tagged , , , , | Leave a comment

PHP Quick Tips – Fruit of Framework Hopping

Zend Framework and Kohana v3 – they were my favorite PHP frameworks and I’ve learn a lot from them, especially from Kohana v3. I have gathered some nice tricks that I never knew until I discovered them on these frameworks. … Continue reading

Posted in Kohana v3, php, Zend Framework | Tagged , | 1 Comment

Zend Server Community Edition

Matching Correct Version From the stable version PHP 5.2.6, I decided to play around with the latest versions of PHP, Apache and MySQL. Some PECL components such as APC and Printer are taken into considerations since one of our project … Continue reading

Posted in zend server | Tagged , , , , , | Leave a comment

SwiftMailer on Zend Framework

This topic has been in my todo list for 3 months already so it’s time to add another great information to our knowledge base. To provide our mailing functionality, I choose SwiftMailer over Zend_Mail. I have integrated SwiftMailer into our … Continue reading

Posted in SwiftMailer, Zend Framework | Tagged , , , | Leave a comment

PHP and Windows Networking

Have you been annoyed when sometimes, you are asked to enter a username and password when accessing a network resource in a Windows network? It even asks password even when that machine does not set password for all of its … Continue reading

Posted in Apache, Networking, php, Windows | Tagged , , , | Leave a comment

Enable APC on PHP CLI

I have posted hours ago about creating cron job for php scripts via cron. Of course it was just the last resort since there are things that don’t work on regular PHP CLI scripts. After some research and after asking … Continue reading

Posted in Bash, Linux, php | Tagged , , , , , , | 3 Comments

PHP – Writing to Excel File via PEAR on Zend Framework

Two weeks ago, I was developing a web based application that saves data into an Excel file. It will create a new Excel file, add header rows in bold text, sets the column width and saves the data beneath the … Continue reading

Posted in Excel, Zend Framework | Tagged , , , , , , | 7 Comments

PHP – Download File with IE Support

Consider this simple file download in PHP. This is expected to work in Firefox, Chrome and Safari. It works great in Firefox! However, it does not work in IE6 and IE7. I haven’t tested IE8 since I don’t have one. … Continue reading

Posted in Internet Explorer, php, Web Development | Tagged , , , , , | 1 Comment