PHP Doku:: Copies the database - tokyotyrant.copy.html

Verlauf / Chronik / History: (1) anzeigen

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

Ein Service von Reinhard Neidl - Webprogrammierung.

The TokyoTyrant class

<<TokyoTyrant::__construct

TokyoTyrant::ext>>

TokyoTyrant::copy

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::copyCopies the database

Beschreibung

public TokyoTyrant TokyoTyrant::copy ( string $path )

Makes a copy of the current database

Parameter-Liste

path

Path to where to copy the database. The user running the remote database must have a write access to the directory.

Rückgabewerte

This method returns the current object and throws TokyoTyrantException on failure.

Beispiele

Beispiel #1 TokyoTyrant::copy() example

<?php
$tt 
= new TokyoTyrant("localhost"1978);
$tt->copy("/tmp/foobar.tct");
?>

Siehe auch


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



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",...)