Informix connection

 
Post new topic   Reply to topic    Aprelium Forum Index -> Databases
View previous topic :: View next topic  
Author Message
zucarino
-


Joined: 07 May 2009
Posts: 1

PostPosted: Thu May 07, 2009 1:37 pm    Post subject: Informix connection Reply with quote

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 View user's profile Send private message
aprelium-support
-


Joined: 20 Feb 2009
Posts: 356

PostPosted: Thu May 07, 2009 6:41 pm    Post subject: Re: Informix connection Reply with quote

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 View user's profile Send private message Visit poster's website
Kavkazzz
-


Joined: 16 May 2009
Posts: 17
Location: USA

PostPosted: Thu Sep 03, 2009 2:47 am    Post subject: Informix connection Reply with quote

Certainly. All above told the truth. Let's discuss this question. Here or in PM.
Back to top View user's profile Send private message Send e-mail ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Databases All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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


Powered by phpBB phpBB Group