1. Go to this page and download the library: Download pan-roman/ifx4dd-plus library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pan-roman / ifx4dd-plus example snippets
$dsn = 'informix:'
. 'host=hosttest1;'
. 'server=test1tcp;'
. 'database=test_database;'
. 'protocol=onsoctcp;'
. 'service=50000;';
$user = 'your_user';
$password = 'your_password';
$con = new PDO($dsn, $user, $password);
if ($con) {
echo "The connection was successfully established\n";
}