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, 24 Jul 2009

view this page in

mysqli_rpl_query_type

mysqli->rpl_query_type

(PHP 5)

mysqli_rpl_query_type -- mysqli->rpl_query_typeReturns RPL query type

설명

Procedural style:

int mysqli_rpl_query_type ( mysqli $link , string $query )

Object oriented style (method)

int rpl_query_type ( string $query )

Returns MYSQLI_RPL_MASTER, MYSQLI_RPL_SLAVE or MYSQLI_RPL_ADMIN depending on a query type. INSERT, UPDATE and similar are master queries, SELECT is slave, and FLUSH, REPAIR and similar are admin.

Warning

이 함수는 현재 문서화 되어있지 않습니다; 인수 목록만을 제공합니다.

Warning

이 함수는 배제되었고 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, 24 Jul 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites