I am testing ADS and I fail to connect using php. Actually they cannot use the client on the Linux machine the web server is running. The php module is installed
php -i | grep -i adv
advantage
Advantage Version => 11.10.0.1
Advantage Support => enabled
advantage.allow_persistent => On => On
advantage.check_persistent => On => On
advantage.default_db => no value => no value
advantage.default_pw => <i>no value</i> => <i>no value</i>
advantage.default_user => no value => no value
advantage.defaultbinmode => return as is => return as is
advantage.defaultlrl => return up to 4096 bytes => return up to 4096 bytes
advantage.max_links => Unlimited => Unlimited
advantage.max_persistent => Unlimited => Unlimited
patientlink:/home/patientlink/public_html# php -i | grep -i pdo
/etc/php5/cli/conf.d/pdo.ini,
/etc/php5/cli/conf.d/pdo_dblib.ini,
/etc/php5/cli/conf.d/pdo_mysql.ini,
/etc/php5/cli/conf.d/pdo_odbc.ini,
/etc/php5/cli/conf.d/pdo_sqlite.ini,
PDO
PDO support => enabled
PDO drivers => dblib, mysql, odbc, sqlite, sqlite2
pdo_dblib
PDO Driver for FreeTDS/Sybase DB-lib => enabled
pdo_mysql
PDO Driver for MySQL => enabled
PDO_ODBC
PDO Driver for ODBC (unixODBC) => enabled
pdo_sqlite
PDO Driver for SQLite 3.x => enabled
and in the manual we find this example http://devzone.advantagedatabase.com/dz/webhelp/Advantage11/index.html?php_advantage_pdo_driver.htm
<?PHP
$pdoDBH = new PDO( "advantage:Data Source=//server:6262/share/;ServerType=Remote;" );
$pdoDBH->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
$pdostmtStatement = $pdoDBH->query( "select * from testtable" );
$iNumRows = $pdostmtStatement->rowCount();
$aArray = $pdostmtStatement->fetchAll( PDO::FETCH_ASSOC );
print_r( $aArray );
$pdostmtStatement->closeCursor();
$pdoDBH = null;
?>
where we should change the server address and provide credentials. The ADS server is version 9 running on a windows machine and if I use this
79.129.39.53c\webdata\DATA\LIS.add
username : adssys
password: labadmin
I can connect from either the machine the server is running or another windows machine, but not from linux
it is an old version because there is a potential customer who has already built an application on this version and requests to prove him php connectivity, however I can only download latest clients.
1) I suppose since client 11 is connecting from windows it can also connect from Linux
2)need help to configure php, I am afraid I am not well aware of either php and ADS and probably I am asking something really trivial
Thank you in advance