Archive for the ‘PHP Tutorials’ Category

Codeigniter: Helpers, Plugins and Libraries

Having used Codeigniter for a few months now, this framework is really turning out to be a joy. My last post, I talked about how to modify native CI Libraries.
With so many published PHP classes and functions, it would be a shame if we couldn’t use them in CI. Fortunately CI (like all good frameworks) [...]

Posted on December 3, 2008 at 11:31 am by Eldee · Permalink · 11 Comments
In: PHP Tutorials · Tagged with: , , ,

CodeIgniter: Extending the native ‘Model’ and make it your own.

Today I took advantage of CodeIgniter’s ability to extend the native libraries, and I was well satisfied that it just works.
Let me elaborate, I’m in the process of creating models for my CI project, and realized that certain functions within the models were getting repetitive. Using CI’s ability to create my own custom libraries, [...]

Posted on November 7, 2008 at 5:46 pm by Eldee · Permalink · 10 Comments
In: PHP Tutorials · Tagged with: , ,

CodeIgniter: Organizing views simply

Having been brought up developing PHP using templating systems like Smarty, I’m very used to segmenting my page elements into reusable block, and swapping out blocks of HTML codes, nesting blocks of code within other blocks and so on.
Trying my hands at using CodeIgniter, one of the first obstacles I had was how to organize [...]

Posted on October 22, 2008 at 4:20 pm by Eldee · Permalink · 22 Comments
In: PHP Tutorials · Tagged with: , ,

Cacti: Using Cacti to monitor web page loading – Part 3

Welcome to Part 3 on using Cacti for monitoring of web page loading time. In the previous 2 parts, I walked you through how to install a custom script which will query for the loading time of a web page (Part 1), and how to configure Cacti to start collecting data (Part 2).
In this, [...]

Posted on September 19, 2008 at 4:19 pm by Eldee · Permalink · 35 Comments
In: PHP Tutorials · Tagged with: , ,

Cacti: Using Cacti to monitor web page loading – Part 2

In Part 1, I discussed about how to use Cacti, a great open-source monitoring tool, for the purpose of monitoring your webpages. More specifically, the time it takes for a webserver to receive the request to the point where the last byte is sent out. I walked through the custom scripts needed by Cacti and [...]

Posted on September 19, 2008 at 2:25 pm by Eldee · Permalink · One Comment
In: PHP Tutorials · Tagged with: , ,

Cacti: Using Cacti to monitor web page loading – Part 1

In my current project, I’ve been looking into website performance and measuring how long it takes for webpages to be composed. Although there are plenty of tools both commercial and non-commercial which is available to do just that, they either cost too much or is a one-time data capture tool (which would be quite laborious [...]

Posted on September 17, 2008 at 4:15 pm by Eldee · Permalink · 24 Comments
In: PHP Tutorials · Tagged with: , ,

Cacti: Ubuntu 8.04 Cacti Plugin – Invalid PHP_SELF Path problem

Lately, I’ve been spending a lot of time with Cacti on my Ubunto 8 install. Cacti as we all know is a (great) PHP wrapper application around the rrdtool command. Cacti and rrdtool are typically used by network/systems administrators for graphing network conditions, churning out great looking graphs for various SNMP data.
I’ve been investigating whether [...]

Posted on August 14, 2008 at 3:25 pm by Eldee · Permalink · 14 Comments
In: PHP Tutorials · Tagged with: , ,

PHP Class for Date Time calculations – Part 2

In my previous posting I touched on a PHP class called DateClass (by Steve Powell) that I downloaded from phpclasses.org. The DateClass package actually contained 2 separate classes. One for manipulating dates and the other for date spans.
This post will cover how to use the DateSpanClass to easily calculate the difference between 2 dates, in [...]

Posted on July 21, 2008 at 6:50 pm by Eldee · Permalink · One Comment
In: PHP Tutorials · Tagged with: , ,

PHP Class for Date Time calculations – Part 1

Performing data/time calculation is basic requirement in any programming project. No serious application can hide from it, so thankfully PHP itself comes with some very useful data/time functions. But, I feel that those PHP date/time functions are probably great for data/time display and formatting, but not so much for calculating for things like the beginning/end [...]

Posted on July 14, 2008 at 6:34 pm by Eldee · Permalink · 9 Comments
In: PHP Tutorials · Tagged with: 

CakePHP: Baking in frustration

Sometime back, I posted about my first experience with CakePHP. I installed the framework and went through the tutorial on building a simple blog application, and said “I was quite impressed”.
Now, after 3+ development weeks trying to build a real-world application, I think, maybe I was too hasty to draw that conclusion.

Posted on June 10, 2008 at 6:10 pm by Eldee · Permalink · 19 Comments
In: PHP Tutorials · Tagged with: , ,