Skip to content

Instantly share code, notes, and snippets.

@ilessy
ilessy / Basic connection to SAP HANA from PHP
Created February 27, 2022 06:23 — forked from vdespa/Basic connection to SAP HANA from PHP
Basic connection to SAP HANA from PHP. This is a sample connection to a SAP HANA system. It includes a proper error messaging so if the connection will fail you should be able to get a proper error message.
<?php
/**
* Basic connection to SAP HANA from PHP
*
* This is a sample connection to a SAP HANA system. It includes a proper error messaging so if the connection will fail
* you should be able to get a proper error message.
*
* @license The MIT License (MIT)
* @author Valentin Despa <info[at]vdespa[dot]de>
* @version 1.0 / 04.12.2013