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

search for in the

mysqli_send_long_data> <mysqli_rpl_probe
Last updated: Fri, 13 Nov 2009

view this page in

mysqli_rpl_query_type

mysqli->rpl_query_type

(PHP 5)

mysqli_rpl_query_type -- mysqli->rpl_query_typeRPL クエリの型を返す

説明

手続き型:

int mysqli_rpl_query_type ( mysqli $link , string $query )

オブジェクト指向型(メソッド)

int rpl_query_type ( string $query )

クエリの型により、 MYSQLI_RPL_MASTERMYSQLI_RPL_SLAVE あるいは MYSQLI_RPL_ADMIN のいずれかを返します。 INSERTUPDATE およびそれに類する ものは master クエリで、SELECTslave、そして FLUSHREPAIR およびそれに類するものは admin です。

警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

警告

この関数は 非推奨 であり、PHP 5.3.0 で 削除 されます。



add a note add a note User Contributed Notes
mysqli_rpl_query_type
technique-glamour at condenast dot fr
19-Jul-2007 03:28
WARNING : this function (or maybe the "enable_rpl_parse" function) randomly causes a segfault into PHP.
We don't use this function anymore. Instead we check if the query contains the word 'SELECT' :

function query_type($query)
{
    if ( stripos($query,'SELECT'))   
        return true;
    return false;
}

mysqli_send_long_data> <mysqli_rpl_probe
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites