‘Cool kids’ ARE using PHP and Ruby!

April 2nd, 2008

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 good for simple and lightweight implementations, but sites like Facebook which started with PHP, should be ideal for Java because of it’s growing complexity.

Read the rest of this entry »

VIDEO: PHP and Microsoft

March 20th, 2008

A buddy of mine, Chris, recently did a presentation about Microsoft’s efforts to embrace non-MS technology - like PHP. This presentation was held during the December meet-up of the Singapore PHP User Group.

His video presentation was about an hour long, and covered the following topics:

  • SQL Server PHP driver
  • Open XML and PHP
  • Cardspace and PHP
  • Live Services and PHP
  • Silverlight and PHP
  • Server Core , IIS7, PHP and MySQL

So, go ahead and watch the video…

Read the rest of this entry »

Wordpress noindex nofollow meta tags problem

February 18th, 2008

One of the most frustrating thing about using open-source applications is that you never know what are some of the default obscure settings the application comes with. It doesn’t help when I add my own stupidity into the equation.

I found out today, 3 months after this site went live, wondering why it still hasn’t been indexed by the big ‘G’. It turns out that Wordpress, by default, has the privacy setting turn on, preventing search engines like Yahoo and Google to index the pages on this site! Doh!

Read the rest of this entry »

PHP Operators: Assignment

February 11th, 2008

The main assignment operator is ‘=’, which basically assigns a value on the right to a variable on the left. If you think this is the same as an equal sign in mathematics, don’t! Think of it as a ‘assigned to’ so whatever is on the right is assigned to the left.

Here’s a simple example:

Read the rest of this entry »

PHP Operators: Maths

January 31st, 2008

There are various kinds of operators used in PHP, but we’re going to start with the most basic and commonly known operator - the Math operators.

What are operators? They are basically a special set of characters (or symbols, if you like) which tells PHP to perform a certain operation. For example, the ‘+’ (plus sign) is used for arithmetic adding of 2 values or variables.

Now you know why I’m starting with the Math operators, cos anyone who has had any basis schooling in Mathematics will be familiar with the Math operators.

Read the rest of this entry »

Earth Hour 2008 - Make a difference!

January 29th, 2008

Last year, on 31 March 2007, the good folks at Sydney turned off their lights for 1 hour - Earth Hour. By doing so, they’ve made it possible for each and every one of us to take an action on global warming.

Earth Hour is back for 2008 and now other cities around the world, like Toronto, Chicago and many more getting into the act. Are you?

Read the rest of this entry »

Using comments in your PHP scripts

January 23rd, 2008

Adding comments to PHP code is a very useful practice. Comments allows you to add some descriptive text that you can use to document or remind you on what the various parts of the PHP script is doing.

Comments are not sent to the browser, so it won’t be visible in the actual page you load in your browser, but it will be visible in your text editor you use for writing your PHP script.

Read the rest of this entry »

Introducing PHP Variables

January 18th, 2008

In PHP, you can use something called a ‘variable‘ to store values or reference to things. It’s like a container which you can put some thing or things inside which can be easily passed around.

Read the rest of this entry »

Review: PHP5: Your visual blueprint for creating open source, server-side content

January 16th, 2008

When anyone starts learning something new these days, they tend to get overloaded with more information that they can handle. The same goes for trying to pick up PHP, the shear number of books available on this one topic is staggering. Luckily, there are some great books specially catered to beginners, and this book is one of them.

Read the rest of this entry »

Writing your first PHP script

January 15th, 2008

Now that you know how to use XAMPP Lite, it’s time to write your first PHP script.

This tutorial will guide you on writing your first PHP script, show you how the PHP syntax is used, and where to put and run your PHP pages in XAMPP.

Note: this tutorial assumes you are using XAMPP Lite environment for your PHP scripts. If you want to setup your own XAMPP Lite environment, follow this tutorial about installing XAMPP Lite on a portable device.

Read the rest of this entry »

Google