Persistent Connections
PHP - Advanced Tutorial
2024-11-24
5
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