Return-Path: Delivered-To: apmail-lucene-hadoop-commits-archive@locus.apache.org Received: (qmail 40503 invoked from network); 15 Nov 2007 10:44:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Nov 2007 10:44:33 -0000 Received: (qmail 24956 invoked by uid 500); 15 Nov 2007 10:44:20 -0000 Delivered-To: apmail-lucene-hadoop-commits-archive@lucene.apache.org Received: (qmail 24930 invoked by uid 500); 15 Nov 2007 10:44:20 -0000 Mailing-List: contact hadoop-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-commits@lucene.apache.org Received: (qmail 24921 invoked by uid 99); 15 Nov 2007 10:44:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2007 02:44:20 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2007 10:44:18 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 03740D2E5 for ; Thu, 15 Nov 2007 10:44:12 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: hadoop-commits@lucene.apache.org Date: Thu, 15 Nov 2007 10:44:11 -0000 Message-ID: <20071115104411.28219.7447@eos.apache.org> Subject: [Lucene-hadoop Wiki] Update of "Hbase/HbaseShell/PHP" by udanax X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lucene-hadoop Wiki" for change notification. The following page has been changed by udanax: http://wiki.apache.org/lucene-hadoop/Hbase/HbaseShell/PHP ------------------------------------------------------------------------------ - Describe Hbase/HbaseShell/PHP here. + {{{ + include_once("HShellConnect.class.php"); + + $hbase = new HShellConnect("host_address", port); + $result = $hbase-> executeQuery($query); + + if($result) { + printf("
Result : %s
", $result->getRowCount()); + while($tuple = $result->getNext()) { + $tr = $td = null; + foreach($tuple as $key => $val) { + $tr .= "".$key.""; + $td .= "".$val.""; + } + printf('%s%s
', $tr, $td); + } + } + }}} +