downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

TokyoTyrant::ext> <TokyoTyrant::__construct
[edit] Last updated: Fri, 17 May 2013

view this page in

TokyoTyrant::copy

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::copyCopies the database

Descrierea

public TokyoTyrant TokyoTyrant::copy ( string $path )

Makes a copy of the current database

Parametri

path

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

Valorile întoarse

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

Exemple

Example #1 TokyoTyrant::copy() example

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

Vedeți de asemenea



add a note add a note User Contributed Notes TokyoTyrant::copy - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites