Archive for the ‘PHP Tutorials’ Category

PHP and jQuery: Submit a form without refreshing the page

Lately, I’ve been chancing on quite a number of posts at various places asking about how to perform a web action without the webpage reloading/refreshing? For example, dynamically updating a list on a page without a reload or submitting a form to PHP without leaving the webpage the form sits on.
I guess this is as [...]

Posted on June 9, 2010 at 2:55 pm by Eldee · Permalink · 8 Comments
In: PHP Tutorials · Tagged with: , ,

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

Codeigniter: Handling errors

As coders, I’m sure we all know the value of good error handling. So I thought a quick post about how Codeigniter deals with those pesky errors would be a good post.
The way I see it, there are 2 types of errors we have to work with. The ones which are displayed out in [...]

Posted on February 9, 2010 at 12:19 pm by Eldee · Permalink · 5 Comments
In: PHP Tutorials · Tagged with: ,

Codeigniter: Intergrating OpenFlashCharts

Yes I know, it has been some time since I last posted anything on the site. Things have just been crazy at work, trying to get up to speed on using Pentaho for a major project. In fact, I might start posting some Pentaho related topics in the future. There’s definitely a need for more [...]

Posted on November 6, 2009 at 1:12 pm by Eldee · Permalink · 3 Comments
In: PHP Tutorials · Tagged with: ,

Codeigniter: Setting up multiple sites on one install

It’s been awhile since I last posted about Codeigniter. In this post, I’m going to walkthrough how I setup a CI install that can support multiple sites. This is by no means the only way to do it, but it’s what works for me.
CI’s default folder structure is really geared towards one site domain, and [...]

Posted on August 19, 2009 at 4:19 pm by Eldee · Permalink · 12 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: , ,

Google Analytics API class for PHP

About a month back, Google opened the Google Analytics API service to all Analytics users. the API allows developers to integrate the GA reports into their own applications or websites, or even access the reports from a phone!
I’ve been thinking about how I can make use of this API to enhance the sites I’m working [...]

Posted on May 29, 2009 at 5:13 pm by Eldee · Permalink · 72 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: Mixing segment-based URL with querystrings

Codeigniter, by default crafts it’s URL in a search engine friendly format. It uses a segment-based approach and does away with the all familiar querystring format that developers have been using for many years to pass parameters via the URL into their applications.
Codeigniter does allow you to turn on the querystring capability, but that [...]

Posted on March 9, 2009 at 5:58 pm by Eldee · Permalink · 26 Comments
In: PHP Tutorials · Tagged with: , , ,

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 · 8 Comments
In: PHP Tutorials · Tagged with: , , ,