Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <?php
  2. $serverName = "AMISSAH-PCSQLEXPRESS"; //serverNameinstanceName
  3.  
  4. // Since UID and PWD are not specified in the $connectionInfo array,
  5. // The connection will be attempted using Windows Authentication.
  6. $connectionInfo = array( "Database"=>"epayzone");
  7. $conn = sqlsrv_connect( $serverName, $connectionInfo);
  8.  
  9. if( $conn ) {
  10. echo "Connection established.<br />";
  11. }else{
  12. echo "Connection could not be established.<br />";
  13. die( print_r( sqlsrv_errors(), true));
  14. }
  15. ?>
  16.  
  17. # This file is auto-generated during the composer install
  18. parameters:
  19. database_driver: pdo_sqlsrv
  20. database_host: AMISSAH-PCSQLEXPRESS
  21. database_port: 1433
  22. database_name: epayzone
  23. database_user: null
  24. database_password: null
  25. mailer_transport: smtp
  26. mailer_host: 127.0.0.1
  27. mailer_user: null
  28. mailer_password: null
  29. secret: ThisTokenIsNotSoSecretChangeIt
  30.  
  31. ConnectionException in AbstractMySQLDriver.php line 103: An exception occured in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No such host is known.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement