[Stackoverflow] [Progress OpenEdge ABL] Get better error handling from PHP odbc_connect

  • Thread starter Daniel L. VanDenBosch
  • Start date
Status
Not open for further replies.
D

Daniel L. VanDenBosch

Guest
I could use some help determining what is the best way for me as the developer to see what is causing an error as I am trying to connect to a progress openedge database. All I am seeing is that the connection is failing based on the die message.

In short I am simply looking for more verbose error logging/messaging from the odbc_connect function.

I have a production computer that this is running on just fine, so I would like to know on my new development machine what is missing.

Code:
$my_port = "3500";
$my_username = "my_username";
$my_password = "my_password";
$my_database = "my_db";
//0  (READ UNCOMMITTED)
//1  (READ COMMITTED)
//2  (REPEATABLE READ)
//3  (SERIALIZABLE)
$my_dil = 0;
$my_connection = odbc_connect(
"Driver={Progress OpenEdge 11.7 Driver};
                                      HOST=$progress_host;
                                      PORT=$my_port;
                                      DB=$my_database;
                                      UID=$my_username;
                                      PWD=$my_password;
                                      DIL=$my_dil", "", ""
) or die ("ERROR: Could not connect to Progress OpenEdge Database.");

Continue reading...
 
Status
Not open for further replies.
Top