WebPageTest: The little known but great webpage benchmarking tool.
When it comes to testing how fast a webpage loads, many of us are familiar with Firebug/Yslow tool (installable as a Firefox browser plug-in). Firebug/Yslow is a fantastic plug-in for Firefox, it gives a wealth of information about any webpage as your browser renders it. This is a must have for any webmaster’s toolbox. Unfortunately, using Firebug/Yslow is very ad-hoc, which is great for troubleshooting, but tedious when you want to export data or take more than 1 snapshot.
After some searching I came across another tool – webpagetest.org. This site tests your url and presents its findings and recommendations on optimizating your webpage, with some nice Firebug/Yslow-like waterfall diagram and charts. Check out the results for this site as tested from Dulles, Virginia in the US. Good stuff right?
In: Website Building/SEO · Tagged with: performance, webpagetest, 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.
Read the rest of this post »
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 on. But before kicking off ideas, I had to find out how to access and use the API. I finally came up with a PHP class that will do all the grunt work of calling the API, you just need to supply your report’s parameter and the PHP class will return you an array of Analytics data.
In: PHP Tutorials · Tagged with: api, google analytics, php class
Google ‘Wonder Wheel’ and new search features
Google has launched a new set of features to their search engine which they call “Search Options”. It bring a collection of tools that lets us slice-and-dice our search results to find what we want faster.
The new features includes the ability to filter a search by types such as Forums, Videos, Reviews, etc. We can also filter the results by time, show more description text, and even show thumbnail images from the page. But the best feature has to be the Wonder Wheel – a diagrammatic way to represent related keywords.
In: Website Building/SEO · Tagged with: google, search
Review: Advanced Web Metrics with Google Analytics
When we first deployed Google Analytics to our websites, it was just a matter of putting in the javascript tagging according to GA’s setup guide. With that, we thought our job was done as “techies”. When the business folks and marketers approached us to get more detail out of GA, we happily put in on our list of to-dos, but at the bottom (of course).
That whole perception changed when I picked up this book “Advanced Web Metrics with Google Analytics”, written by Brian Clifton. It is a recommended read if you truly care about your organisation and its online presence.
In: Book Review · Tagged with: google analytics, review, web metrics
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 syntax, simply because I’m so used to using the curly braces after so many years of using PHP. Plus, it’s less typing!
But having spend time working on CodeIgniter projects, I have found myself adopting this alternative syntax when it comes to buidling the CI’s views templates. I appreciate that there is place in the PHP universe for this alternative coding style.
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 would mean you have to use a pure querystring approach, foregoing the segment-based approached.
So, is it possible to mix segments and querystring?
Read the rest of this post »
In: PHP Tutorials · Tagged with: codeigniter, querystring, segments, url
OSSPAC: Notes from the Keynotes II
Following on from yesterday’s Keynotes at the Open Source Singapore Pacific-Asia Conference (OSSPAC), both Sun and Oracle stepped up to the podium to talk about their efforts in the Open Source world with the message that the global economic crisis will be good for Open Source.
In: News · Tagged with: conference, open source, osspac
OSSPAC: Notes from the Keynotes I
I had the pleasure of attending the Open Source Singapore Pacific-Asia COnference (or OSSPAC) held at the Grand Hyatt Singapore from Feb 16-18 2009. This inaugural event brings together the community businesses, developers government officials to experience first hand, the wide range of open systems and to promote the adoption of Open Source technologies across the entire Pacific-Asia region.
In: News · Tagged with: conference, open source, osspac
Review: Professional Codeigniter
There are currently only two books published about Codeigniter available in the market, one is called CodeIgniter for Rapid PHP Application Development and the other is this one I’m reviewing.
Having being using Codeigniter for a few simple projects, and really consider myself a CI newbie, I scooped up this book when I saw in at my local library, hoping for more insights into this wonderful framework. Instead I was left disappointed.
In: Book Review · Tagged with: codeigniter, reviews
