xfirebg Posted March 1, 2018 Share Posted March 1, 2018 Hello. I want to to minimize waiting time if i don't have connection to specific remote host. For example i am checking a DB server for connection. If i don't have connection the time out of the page is approximately 50 seconds. I want to make it 3 second. Im using LoginTimeout Key I have installed SQLSRV driver. And i have activated in php.ini. extension=php_sqlsrv_7_ts.dll And the php code is: $serverName = "172.18.0.52"; //Iskar server seizmika $connectionInfo = array("Database" => "ISKARDB", "UID" => "admin", "PWD" => "admin", "LoginTimeout" => 3); $conn = sqlsrv_connect($serverName, $connectionInfo); But the 3 second timeout not working. Its again the ~50sec timeout. What i can do? Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.