View previous topic :: View next topic |
Author |
Message |
zucarino -
Joined: 07 May 2009 Posts: 1
|
Posted: Thu May 07, 2009 1:37 pm Post subject: Informix connection |
|
|
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:
Code: | <?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 |
|
Back to top |
|
|
aprelium-support -
Joined: 20 Feb 2009 Posts: 356
|
Posted: Thu May 07, 2009 6:41 pm Post subject: Re: Informix connection |
|
|
zucarino,
Please check that the "C:\Program files\Abyss Web Server\PHP528\php_ifx.dll" path is correct.
If it is ok, try to execute this simple script:
Code: | <?php phpinfo(); ?> |
You will see a php.ini file path in the field "Loaded Configuration File".
Is it the one that you edited ?
Finally, what is your operating system (More precisely, is it Microsoft Vista ?) ? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
Kavkazzz -
Joined: 16 May 2009 Posts: 17 Location: USA
|
Posted: Thu Sep 03, 2009 2:47 am Post subject: Informix connection |
|
|
Certainly. All above told the truth. Let's discuss this question. Here or in PM. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|