PHP Doku:: Construct a new TokyoTyrant object - tokyotyrant.__construct.html

Verlauf / Chronik / History: (6) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische Datenbankerweiterungentokyo_tyrantThe TokyoTyrant classTokyoTyrant::__construct

Ein Service von Reinhard Neidl - Webprogrammierung.

The TokyoTyrant class

<<TokyoTyrant::connectUri

TokyoTyrant::copy>>

TokyoTyrant::__construct

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::__constructConstruct a new TokyoTyrant object

Beschreibung

TokyoTyrant::__construct ([ string $host [, int $port = TokyoTyrant::RDBDEF_PORT [, array $options ]]] )

Constructs a new TokyoTyrant object and optionally connects to the database

Parameter-Liste

host

The hostname. Default: NULL

port

port number. Default: 1978

options

Connection options: timeout (default: 5.0), reconnect (default: TRUE) and persistent (default: TRUE)

Rückgabewerte

Throws TokyoTyrantException if connection to database fails

Siehe auch


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
bit dot kevin at gmail dot com
25.09.2010 11:55
Catch The Exception
<?php
       
try {
           
$tt = new TokyoTyrant("192.168.1.100", 11211);
        }catch (
TokyoTyrantException $e) {
           
var_dump($e);
            exit;
        }
?>



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)