Currently Browsing: Web development

Sending emails with Zend_Mail using Gmail or Google Apps

Zend Framework is currently one of the best MVC-based frameworks in the PHP world. Zend_Mail is part of Zend Framework and it provides the ability to easily send email messages. If you’re like me, most web applications you have developed are setup to use Google Apps as their email provider. Here’s how to send email messages via Gmail or Google Apps by using Zend_Mail. public function send()...
read more

Capture the output of var_dump in a string

Introduction You are programming in PHP and you have an array variable that you’d like to explore at different execution paths. Of course, the best way is to use a PHP debugger like xdebug or Zend Debugger, but, what happens when you’re too lazy to install a debugger? What happens when you don’t want or can’t install a debugger and you just need to check the content of that...
read more

URL Rewriting for CodeIgniter

What is URL Rewriting? URL rewriting provides shorter and more relevant-looking links to web pages on your site. This improves the readability and the search rankings of your URLs. For example, URL “a” can be rewritten as URL “b”. a) http://example.com/index.php?section=casting b) http://example.com/casting There are many articles on the web discussing the benefits of shorter...
read more