Error connecting to SQL Server.
PDOException Object
(
[message:protected] => SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No such host is known.
[string:Exception:private] =>
[code:protected] => 2002
[file:protected] => C:\inetpub\wwwroot\PGC2.0\Includes\connection.php
[line:protected] => 4
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => C:\inetpub\wwwroot\PGC2.0\Includes\connection.php
[line] => 4
[function] => __construct
[class] => PDO
[type] => ->
)
[1] => Array
(
[file] => C:\inetpub\wwwroot\PGC2.0\Templates\header.php
[line] => 2
[args] => Array
(
[0] => C:\inetpub\wwwroot\PGC2.0\Includes\connection.php
)
[function] => include
)
[2] => Array
(
[file] => C:\inetpub\wwwroot\PGC2.0\index.php
[line] => 1
[args] => Array
(
[0] => C:\inetpub\wwwroot\PGC2.0\Templates\header.php
)
[function] => include
)
)
[previous:Exception:private] => PDOException Object
(
[message:protected] => PDO::__construct(): php_network_getaddresses: getaddrinfo failed: No such host is known.
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => C:\inetpub\wwwroot\PGC2.0\Includes\connection.php
[line:protected] => 4
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => C:\inetpub\wwwroot\PGC2.0\Includes\connection.php
[line] => 4
[function] => __construct
[class] => PDO
[type] => ->
)
[1] => Array
(
[file] => C:\inetpub\wwwroot\PGC2.0\Templates\header.php
[line] => 2
[args] => Array
(
[0] => C:\inetpub\wwwroot\PGC2.0\Includes\connection.php
)
[function] => include
)
[2] => Array
(
[file] => C:\inetpub\wwwroot\PGC2.0\index.php
[line] => 1
[args] => Array
(
[0] => C:\inetpub\wwwroot\PGC2.0\Templates\header.php
)
[function] => include
)
)
[previous:Exception:private] =>
[errorInfo] =>
[severity] => 2
)
[errorInfo] => Array
(
[0] => HY000
[1] => 2002
[2] => php_network_getaddresses: getaddrinfo failed: No such host is known.
)
)
1