Hello all,
I'm trying to use PHP to connect Informix database, but with no success. The php.ini parameter
extension=php_ifx.dll is ok (
the line starts without ; ), server was restarted correctly. When I open the browser and access the PHP file, I see this window message error:
PHP Startup: Unable to load dynamic library 'C:\Program files\Abyss Web Server\PHP528\php_ifx.dll'.
(
I'm using PHP version 5.2.8 from Aprelium download area, but 5.2.2 was tested either).
The file is there, the path is correct, and I can connect to MySQL databases (for example).
My PHP test file is simple:
<?php
$connection = ifx_connect( "my_db_name@my_db_ip", "name", "password" );
if ( !$connection ) {
echo "Couldn't make a connection!";
exit;
}
$sql = "SELECT * FROM CITY";
$sql_result = ifx_query( $sql, $connection );
ifx_htmltbl_result( $sql_result,"border=1" );
ifx_free_result( $sql_result );
ifx_close( $connection );
?>
Can someone help me? I think evething is right here, but the error still appears.
Thanks :-)
- Victor Zucarino