Slide 38
Slide 38 text
@MICHAELCULLUMUK
SIMPLE PHP CLIENT
$socket = new \SamKnows\Phresto\Client\RemoteHost('http', ‘coordinator.hostname.com',
'8080');
$connection = new \SamKnows\Phresto\Client\HttpConnection($socket, new NullLogger(),
'Michael\'s Macbook', 'Michael', '', 0, 0, 0, false);
$result = $connection->executeQuery("SELECT * FROM table WHERE id=5')", 'hive',
‘database_name’);
$resultClass = $result->getResult();