
Brenden
|
| Posted: 04/11/2003, 3:10 PM |
|
How do you connect to an access database in a netware enviroment using PHP? I received an the following error message and this is my conclusion.
Fatal error: Call to undefined function: odbc_pconnect() in apps:/intranet/site/bptest/eedir/db_odbc.inc on line 35
Line 35=
$this->Link_ID=odbc_pconnect($this->Database, $this->User, $this->Password, $this->UseODBCCursor);
Top of Common.php:
<?php
/*********************************************************************************
* Filename: common.php
* Generated with CodeCharge 1.1.18
* PHP & Templates build 03/28/2001
*********************************************************************************/
error_reporting (E_ALL ^ E_NOTICE);
include("./template.php");
// Database Parameters
include("./db_odbc.inc");
define("DATABASE_NAME","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=W:\intranet\site\BPTest\EEDir\database\EmplDir_MSAccess.mdb;Persist Security Info=False");
define("DATABASE_USER","");
define("DATABASE_PASSWORD","");
define("DATABASE_HOST","");
// Database Initialize
$db = new DB_Sql();
$db->Database = DATABASE_NAME;
$db->User = DATABASE_USER;
$db->Password = DATABASE_PASSWORD;
$db->Host = DATABASE_HOST;
|
|
|
 |
RonB
|
| Posted: 04/13/2003, 3:23 AM |
|
Have you tried it with non persistent connection, uncheck the persistent checkbox in the server part of the connection settings.
Ron
|
|
|
 |
|

|