I'm receiving a 500 error on connection failure
I have a test.php file that just contains the line
<?php require_once('securex.php'); ?>
nothing else so I think there might be an error with the connection file, I've generated a new connection file and changed as above but it's still doing the same, I've tried PHP 8.1 and PHP 8.2, it returns 200 with a successful connection
I’ve tried generating a new connection file and still fails with 500 if the connection details are wrong
<?php
# FileName="WADYN_MYSQLI_CONN.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_securex = "localhost";
$database_securex = "database";
$username_securex = "account";
$password_securex = "password";
@session_start();
$securex = mysqli_init();
if (defined("MYSQLI_OPT_INT_AND_FLOAT_NATIVE")) $securex->options(MYSQLI_OPT_INT_AND_FLOAT_NATIVE, TRUE);
$securex->real_connect($hostname_securex, $username_securex, $password_securex, $database_securex) or die("Connect Error: " . mysqli_connect_error());
?>