Persistent Connections
PHP Tips and Tricks
2026-07-01
15
The simple connection
<? $conn = mysql_pconnect('localhost'); echo $conn; ?>
Output
$conn = mysql_pconnect('localhost'); echo $conn; ?>
Caveats
•
Watch out for multi-credential connections
•
Make sure you match up max_connections and MaxClients