0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.17.174.204


Current Path : /var/www/html/oums/api/
Upload File :
Current File : /var/www/html/oums/api/sys_connect.php

<?php

include("/var/www/config.php");
	$servername = SERVERNAME;
	$username   = USERNAME;
	$password  = PASSWORD;

header("Access-Control-Allow-Origin: *");
header('Content-Type: application/json');

header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With, x-auth-origin, x-auth-token, x-auth-type");
// $mycon = mysqli_connect("localhost", "root", "", "logisys3_oums") or die("Connection Failed" . mysqli_connect_error());
$mycon = mysqli_connect($servername, $username, $password, "logisys3_oums") or die("Connection Failed" . mysqli_connect_error());