'; 19 | // print_r($result); 20 | // echo ''; 21 | // } catch (Aws\Exception\S3Exception $e) { 22 | // echo "There was an error retrieving the file.\n"; 23 | // } 24 | 25 | $servername = "db.rossedman.internal"; 26 | $username = "admin"; 27 | $password = "password"; 28 | 29 | echo gethostname(); 30 | 31 | try { 32 | $conn = new PDO("mysql:host=$servername;dbname=basicapp", $username, $password); 33 | $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 34 | echo "Connected successfully"; 35 | } 36 | catch(PDOException $e) { 37 | echo "Connection failed: " . $e->getMessage(); 38 | } 39 | -------------------------------------------------------------------------------- /laravel/public/web.config: -------------------------------------------------------------------------------- 1 |