note 119981 deleted from function.mysqli-connect by cmb
| From: | cmb@php.net | Date: | Tue, 23 Jul 2019 06:36:47 +0000 |
| Subject: | note 119981 deleted from function.mysqli-connect by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211683@lists.php.net to get a copy of this message | ||
Note Submitter: d4v3m0nk
----
Worthwhile noting that the MySQLi library can still open a permanent connection, but a different
command isn't used. Simply prepend "p:" to the MySQL hostname or address.
Using classes:
$this->mysqli = new mysqli('p:'. mysql_host, mysql_user, mysql_password,
mysql_database);
Using command:
$link = mysqli_connect('p:mysql_host', 'mysql_user', 'mysql_password',
'mysql_database');