Posted by david on November 30, 2008
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 [...]
Share on Facebook
Posted by david on November 30, 2008
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 [...]
Share on Facebook
Posted by david on November 29, 2008
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
Share on Facebook
Posted by david on November 28, 2008
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 [...]
Share on Facebook
Posted by david on November 28, 2008
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 [...]
Share on Facebook