Monthly Archives: November 2008

Execute a Query and return an Array using PHP

The following function execute a query and return an associative array if is needed.   <?php /** * Execute a Query and return an associative Array * * @param string $sql * @param resource $link * @param bool $getArray * @return boolean/array */ function executeQuery($sql, $link, $getArray = true) { if (!is_string($sql)) return false; $result [...]

Highlighting Google results on webpage

The Problem Sometimes we have a page with so much content that it’s hard for everyone to find the exact content that he might be looking for. Maybe we just want to distinguish the keywords that someone used to find our website. For this we can use a simple php code. The Code First of [...]

Linux on the iPhone Demonstration Video

A short narrated video demonstrating iPhone Linux, a port of the Linux operating system to the iPhone 2G, iPhone 3G, and first-generation iPod touch platforms. This video was created with Cycorder, a video recorder app for the iPhone, with apologies for the blurriness. Share on Facebook

Why Linux is better?

Do you know why? no?? really?…  You really have to go to: whylinuxisbetter.net. Just read some of this points here: No viruses Stable Don’t pay license Protects your PC Freedom! Install all you need since the OS is installed without download anything All Drivers Keep Uptade Get really free Software Linux gets all software that [...]

PHP Namespace Separator, the back slash (\)

I really would like to know why… I think they (php developer) should send a list of reasons why the backslash would be the namespace separator. This means that the follow would be the syntax: Class.php namespace Foo; class Class { function init() { } } Bootstrap.php include "Class.php"; spl_autoload_register(array("Foo\tClass", "init")); This example will register [...]