Persistent Connections
PHP
2024-12-26
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