update : 2015.11.03
php.shukuma.com검색:
|
maxdb_pingmaxdb::ping(PECL maxdb >= 1.0) maxdb_ping -- maxdb::ping — Pings a server connection, or tries to reconnect if the connection has gone down 설명절차식 형식
bool maxdb_ping
( resource
$link
)객체 기반 형식
bool maxdb::ping
( void
)
Checks whether the connection to the server is working. If it has gone down, and global option maxdb.reconnect is enabled an automatic reconnection is attempted. This function can be used by clients that remain idle for a long while, to check whether the server has closed the connection and reconnect if necessary. 반환값
성공 시 예제Example #1 객체 기반 형식
<?php Example #2 절차식 형식
<?php 위 예제의 출력 예시: Our connection is ok! |