PHP Grid 2.8.1 and PHP 8.2.6 – Encrypt/TrustServerCertificate

QuestionsPHP Grid 2.8.1 and PHP 8.2.6 – Encrypt/TrustServerCertificate
Hinterndorfer Markus asked 12 months ago

Hello!

How can i add the Encrypt and TrustServerCertificate to the mssqlnative connection? We need this for the use with php 8.2.6.

Thanks!

Our Connection:

define(“PHPGRID_DBTYPE”,”mssqlnative”);
define(“PHPGRID_DBHOST”,”A1525v\SQLInstanz2″);
define(“PHPGRID_DBUSER”,”reports”);
define(“PHPGRID_DBPASS”,”XXXX”));
define(“PHPGRID_DBNAME”,”Garant_Produktion_ESA”);

Example from Microsoft:

$serverName = “serverName”;
$connectionInfo = array( “Database”=>”DbName”,
                         “UID”=>”UserName”,
                         “PWD”=>”Password”,
                         “Encrypt”=>true,
                         “TrustServerCertificate”=>true);
$conn = sqlsrv_connect( $serverName, $connectionInfo);

 

1 Answers
Abu Ghufran Staff answered 12 months ago

Hi,

Currently, it’s not configurable. You can solve the issue by editing lib/inc/jqgrid_dist.php and search ($this->con->charSet) and add next line:

$this->con->charSet = $this->charset;
$this->con->setConnectionParameter('Encrypt',1);
$this->con->setConnectionParameter('TrustServerCertificate',1);

 

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

10 + 16 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?