Archive for April, 2008

Review: Programming PHP (2nd Edition)

It’s always important to have good resources when you are starting out to learn something new. Thankfully, learning PHP is much easier with books like Programming PHP (2nd edition).
Authored by Kevin Tatroe, Peter MacIntyre, and (none other than the father of the PHP language) Rasmus Lerdorf. I found this book to be an excellent, [...]

Posted on April 25, 2008 at 5:00 pm by Eldee · Permalink · 2 Comments
In: Book Review · Tagged with: ,

Creating simple graphs using Google Charts API

Thinking back a fews years ago, I was involved in building some reporting modules with graphs and charts to show our customer utilisation of our data center. After trying a number of different open source graphing packages for PHP, I finally found JpGraph, which I daresay is probably the best graphing package available for [...]

Posted on April 24, 2008 at 3:39 pm by Eldee · Permalink · 4 Comments
In: PHP Tutorials · Tagged with: , ,

Using regular expressions to extract content

PHP provides a number of really neat regular expression functions. You can find the list of the regex function at the PHP site.
But the one that I’ve had most fun with is the preg_match_all() function which I’ve been using to do content extraction from an HTML page.

Posted on April 22, 2008 at 7:03 pm by Eldee · Permalink · 20 Comments
In: PHP Tutorials · Tagged with: , ,

Planning your blog site

It a real challenge to get your own website going these days, especially when you’re clueless about the website ’stuff’. Gone are the days of just creating some HTML pages, put in some graphics, and linking the pages around. These days you’ll be bombarded with so many acronyms and technologies you probably don’t even know [...]

Posted on April 18, 2008 at 3:08 pm by Eldee · Permalink · Leave a comment
In: Website Building/SEO · Tagged with: ,

Parsing a URL querystring into variables in PHP

It’s common knowledge you can read variable from a URL querystring by using $_GET array in PHP, but that’s only possible if the URL is “executed” in the browser.
For those who might not know, querystrings are those variable-value pairs that appears behind ‘?’ of a URL. For example,
http://www.mysite.com/index.php?variable1=1&variable2=1
gives the querystring “variable1=1&variable2=1″.
What happens if [...]

Posted on April 17, 2008 at 4:16 pm by Eldee · Permalink · 4 Comments
In: PHP Tutorials · Tagged with: , ,

Checking a string is alphanumeric in PHP

There may be times when you need a way to check that a string only contains alpha-numeric characters. That means only alphabets A-Z and numbers 0-9.
Most PHP-ers will probably use regular expressions and the function preg_match(). I will admit that regular expressions is really powerful, but it’s a real pain to learn and master. Fortunately [...]

Posted on April 11, 2008 at 4:18 pm by Eldee · Permalink · 11 Comments
In: PHP Tutorials · Tagged with: , ,

Headaches deciding Website quotes

The other day, a friend of mine told me that she’s looking to setup a website for her small business in adventure trekking. She asked me to help her look at some website quotations she received from a few local web design companies. Promptly after I agreed, 2 quotes and her to-be-website sitemap arrived by email.
In her [...]

Posted on April 4, 2008 at 2:47 pm by Eldee · Permalink · One Comment
In: Website Building/SEO · Tagged with: 

‘Cool kids’ ARE using PHP and Ruby!

Coach Wei was wondering why ‘Cool Kids’ choose Ruby or PHP over Java? In his post, the power of Java is a “perfect fit for the areas where websites may need more than markups or scripting, such as middleware logic”, whereas PHP or Ruby are not ideal for building such middleware.
For example, PHP (and Ruby) are [...]

Posted on April 2, 2008 at 12:22 pm by Eldee · Permalink · One Comment
In: News · Tagged with: ,