MongoDB + PHP: support for SSL? -


does php client mongodb have support ssl? or there way connect mongodb instance running in ssl?

i see in mongodb docs client list not specify php (this link) curious see if out there have tried or trying , idea of expected release etc.

yes, php driver supports in latest versions. in connection string should able add "ssl" option in following 2 ways:

  1. $m = new mongoclient( 'mongodb://localhost/?ssl=true' );
  2. $m = new mongoclient( 'mongodb://localhost', array( 'ssl' => true ) );

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -