note 79090 added to ref.mysqli

From: Date: Sat, 10 Nov 2007 15:48:09 +0000
Subject: note 79090 added to ref.mysqli
Groups: php.notes 
Request: Send a blank email to php-notes+get-132163@lists.php.net to get a copy of this message
If you want to extend mysqli and establish an connection with SSL authentication, the followings may be useful. (note: not all php-mysqli supports mysqli_ssl_set()) class DataAccess extends mysqli { function __construct( $hostname, $username, $passwd=null, $dbname=null, $port=null, $socket=null, $flags=null, $privatekey=null, $certificate=null, $caCertificate=null) { $link = parent::init(); if ($privatekey!=null && $certificate!=null && $caCertificate!=null) $link->ssl_set($privatekey, $certificate, $caCertificate, dirname($caCertificate),NULL); parent::__construct($hostname, $username, $passwd, $dbname, $port, $socket); } ..... } ---- Server IP: 140.112.2.5 Probable Submitter: 210.3.233.130 ---- Manual Page -- http://www.php.net/manual/en/ref.mysqli.php Edit -- https://master.php.net/note/edit/79090 Del: integrated -- https://master.php.net/note/delete/79090/integrated Del: useless -- https://master.php.net/note/delete/79090/useless Del: bad code -- https://master.php.net/note/delete/79090/bad+code Del: spam -- https://master.php.net/note/delete/79090/spam Del: non-english -- https://master.php.net/note/delete/79090/non-english Del: in docs -- https://master.php.net/note/delete/79090/in+docs Del: other reasons-- https://master.php.net/note/delete/79090 Reject -- https://master.php.net/note/reject/79090 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132163) next »