Hi Ben,
Please try this connectionstring:
$driver = "HDBODBC32"; // 32 bit odbc drivers that come with the hana client installation.
$servername = "(HOSTNAME):(PORT)"; // e.g. "192.168.0.1:30015" or "ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com:30115" Enter your external access server name
$db_name = "SAPPRD"; // This is the default name of your hana instance.
$username = "SAPPRD"; // This is the default username, do provide your username
$password = "XXX"; // This is the default password, do provide your own password.
$conn = odbc_connect("Driver=$driver;ServerNode=$servername;Database=$db_name;", $username, $password, SQL_CUR_USE_ODBC);
Best regards,
Raymund