⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

mysqli_ping()

The mysqli_ping() function pings the server connection to check if it is working. If the connection has been lost and the automatic reconnect option is enabled, the function attempts to reconnect.

EXAMPLE
RESULT
The result will be displayed here...

Practical use: This function is extremely useful for long-running scripts (e.g., importing large files or periodic tasks). It ensures that execution does not stop due to a connection timeout.