PHP Basics: Sorting Arrays

Arrays are wonderful things. I can’t imagine using a programming language that does not have support for arrays. For newbies, arrays might be something that’s difficult to understand at first, but once you get used to it, it’s almost impossible to live without. Guaranteed!
If you are not familiar with what arrays are, visit the PHP [...]

Posted on March 14, 2010 at 10:56 pm by Eldee · Permalink · 5 Comments
In: PHP Tutorials · Tagged with: ,

PHP Basics: Accessing Remote URLs using cURL

In this post, I’m going back to basics to talk about accessing remote URLs with cURL.
In PHP, there are actually four ways to access a remote URL – fopen() fsockopen(), cURL extensions and HTTP_Request class from the PEAR library. Now, choosing one way over another really depends on your needs for simplicity, control, and portability. [...]

Posted on June 19, 2009 at 4:40 pm by Eldee · Permalink · 6 Comments
In: PHP Tutorials · Tagged with: , ,

PHP’s alternative syntax and why it’s useful

PHP offers an alternative way to write their control structures for as long as I’ve remembered. It basically does away with the curly brackets and replaces the opening curly with a colon (:) and the closing with ‘end’-whatever. I have to be honest and say I’ve never really found a need to use the alternative [...]

Posted on April 16, 2009 at 2:34 pm by Eldee · Permalink · 16 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 · 8 Comments
In: PHP Tutorials · Tagged with: , ,

Oracle 11g and PHP

When we talk about PHP, MySQL is often the other word that goes hand-in-hand with it. But Oracle? 2 weeks ago, I had an opportunity to attend the Singapore’s PHP User Group monthly gathering, and the topic was on Oracle 11g and PHP.
Oracle is not often associated with PHP in my world, so the [...]

Posted on October 30, 2008 at 11:51 am by Eldee · Permalink · 3 Comments
In: News · 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 · 18 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 · 11 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: , ,

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: , ,

To interoperate or not?

Later this week I’ll be attending a talk on interoperability, organised by Microsoft. A friend of mine working at the local Microsoft office is organising the event. He was asking me to help spread the word about the event.
We got talking and from what he tells me about his job as an ‘Evangelist’, I [...]

Posted on May 12, 2008 at 4:03 pm by Eldee · Permalink · Leave a comment
In: News · Tagged with: ,