update : 2015.11.03
php.shukuma.com검색:
|
mysqli::pingmysqli_ping(PHP 5) mysqli::ping -- mysqli_ping — Pings a server connection, or tries to reconnect if the connection has gone down 설명객체 기반 형식
bool mysqli::ping
( void
)
절차식 형식 Checks whether the connection to the server is working. If it has gone down, and global option mysqli.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 mysqli::ping() example 객체 기반 형식
<?php 절차식 형식
<?php 위 예제들의 출력: Our connection is ok! |