Archive for the ‘PHP Tutorials’ Category
Codeigniter: Creating dynamic graphs using JQuery and FusionCharts
I recently upgraded some of my Codeigniter applications that used OpenFlashCharts to using FusionCharts Free, and at the same time incorporated some javascript to allow me to change the graphs dynamically at the client-side. This has greatly improved the usability of my charts and graphs that I pump out. As such, I thought I would [...]
In: PHP Tutorials · Tagged with: charts, codeigniter, jquery
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 [...]
In: PHP Tutorials · Tagged with: ajax, forms, jquery
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 [...]
In: PHP Tutorials · Tagged with: arrays, PHP
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 [...]
In: PHP Tutorials · Tagged with: codeigniter, errors
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 [...]
In: PHP Tutorials · Tagged with: charts, codeigniter, openflashcharts
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 [...]
In: PHP Tutorials · Tagged with: Apache, codeigniter, website
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. [...]
In: PHP Tutorials · Tagged with: curl, PHP, tutorial
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 [...]
In: PHP Tutorials · Tagged with: api, google analytics, php class
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 [...]
In: PHP Tutorials · Tagged with: codeigniter, PHP, syntax
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 [...]
In: PHP Tutorials · Tagged with: codeigniter, querystring, segments, url
