PinoyTech.org

CodeIgniter, Kohana, Mootools, jQuery and CSS

Install Apache on Ubuntu

Posted by teejay on December 30, 2011

Apache has been a go to for PHP development as it is one of the LAMP stack devfinitions. A is for Apache

Continue reading Install Apache on Ubuntu

 

What every PHP developer should know

Posted by teejay on May 13, 2010

This would be an interesting article if you're a PHP developer. More so if you are applying for a PHP job or hiring someone for a PHP developer position.

I just read an interesting question regarding what every PHP developer should know.

Continue reading What every PHP developer should know

 

Write INI files with PHP

Posted by teejay on May 13, 2010

INI files are particularly helpful for small configurations. The Zend framework intensively uses INI files (from their beginners guide). You can use parse_ini_fileto read the configuration listed in there. However, what if we wanted to modify the INI files?

Continue reading Write INI files with PHP

 

Multiple Applications with Codeigniter with one installation

Posted by teejay on April 10, 2010

Upgrading is never easy, you have to check for all deprecated functions. And although, CodeIgniter makes it very easy, it's probably going to be hard once you have tons of applications to upgrade.

Continue reading Multiple Applications with Codeigniter with one installation

 

List dates between specified dates

Posted by teejay on March 14, 2010

I recently had the need to list dates between specified dates for an application. I created a function for doing some sort of date lister. I just wanted to share it.

Continue reading List dates between specified dates

 

UserCake : Simple User Management System

Posted by teejay on December 3, 2009

UserCake logo

User Management is a commonly seen in most web applications today. That's why it's important for any web application to have a pretty secure scalable user management system.

Welcome, UserCake (not to be affiliated with the PHP Framework CakePHP). It acts as a baseline for you user management needs.

Continue reading UserCake : Simple User Management System

 

CodeIgniter Image Manipulation Class: How to Resize

Posted by teejay on December 1, 2009

CodeIgniter logo

The CodeIgniter Image Manipulation Class is a useful tool when implementing simple resize, cropping, rotate, watermarking and flipping of images are required in your project.

Here is a series of code templates for using the CodeIgniter Image Manipulation Class:

First one is resizing:

Continue reading CodeIgniter Image Manipulation Class: How to Resize

 

The Right Way to Get a File Extension in PHP

Posted by teejay on November 29, 2009

I made a recent search on retrieving file extensions in PHP.

I found out that a lot have been re-inventing the wheel. They have been creating code for functionality that PHP already has. This is one example of re-inventing the wheel

function get_file_extension($file_name) 
{
    return substr(strrchr($file_name,'.'),1);
}

Another example was this:

function file_extension($filename)
{
    return end(explode(".", $filename));
}

PHP already has a function that does the same thing and more.

Continue reading The Right Way to Get a File Extension in PHP